From 7d4f63aa6d67c1d968b667bfc101946d02cea187 Mon Sep 17 00:00:00 2001 From: onyx-and-iris <75868496+onyx-and-iris@users.noreply.github.com> Date: Sat, 30 Jul 2022 16:47:12 +0100 Subject: [PATCH] add callback.deregister to readme --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 227e09b..27228cd 100644 --- a/README.md +++ b/README.md @@ -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)