add callback.deregister to readme

This commit is contained in:
onyx-and-iris 2022-07-30 16:47:12 +01:00
parent 56da8c7fac
commit 7d4f63aa6d

View File

@ -93,9 +93,12 @@ cl.callback.register(input_mute_state_changed)
# returns a list of currently registered events
print(cl.callback.get())
# You may also deregister a callback
cl.callback.deregister(input_mute_state_changed)
```
cl.callback accepts both a single or list of functions.
`register(fns)` and `deregister(fns)` accept both single functions and lists of functions.
For a full list of events refer to [Events](https://github.com/obsproject/obs-websocket/blob/master/docs/generated/protocol.md#events)