diff options
author | halcy <halcy@ARARAGI-KUN> | 2022-11-13 18:39:56 +0200 |
---|---|---|
committer | halcy <halcy@ARARAGI-KUN> | 2022-11-13 18:39:56 +0200 |
commit | 5215c2242dd7b87418a7c10781c2b10b35d86f46 (patch) | |
tree | 9164c3963424cc149ddd7e61561470f27f5b817a /docs | |
parent | 0e00fced99976d74e972a3c9ca5b762697840a33 (diff) | |
download | mastodon.py-5215c2242dd7b87418a7c10781c2b10b35d86f46.tar.gz |
Fix some things in streaming and admin API for 3.3.0 support
Diffstat (limited to 'docs')
-rw-r--r-- | docs/index.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/index.rst b/docs/index.rst index 9083fc9..e555912 100644 --- a/docs/index.rst +++ b/docs/index.rst | |||
@@ -1305,9 +1305,8 @@ A `CallbackStreamListener` class that allows you to specify function callbacks | |||
1305 | directly is included for convenience. | 1305 | directly is included for convenience. |
1306 | 1306 | ||
1307 | For new well-known events implement the streaming function in `StreamListener` or `CallbackStreamListener`. | 1307 | For new well-known events implement the streaming function in `StreamListener` or `CallbackStreamListener`. |
1308 | The function name is `on_` + the event name. If the event-name contains dots, use an underscore instead. | 1308 | The function name is `on_` + the event name. If the event name contains dots, they are replaced with |
1309 | 1309 | underscored, e.g. for an event called 'status.update' the listener function should be named `on_status_update`. | |
1310 | E.g. for `'status.update'` the listener function should be named as `on_status_update`. | ||
1311 | 1310 | ||
1312 | It may be that future Mastodon versions will come with completely new (unknown) event names. In this | 1311 | It may be that future Mastodon versions will come with completely new (unknown) event names. In this |
1313 | case a (deprecated) Mastodon.py would throw an error. If you want to avoid this in general, you can | 1312 | case a (deprecated) Mastodon.py would throw an error. If you want to avoid this in general, you can |
@@ -1336,6 +1335,7 @@ StreamListener | |||
1336 | .. automethod:: StreamListener.on_notification | 1335 | .. automethod:: StreamListener.on_notification |
1337 | .. automethod:: StreamListener.on_delete | 1336 | .. automethod:: StreamListener.on_delete |
1338 | .. automethod:: StreamListener.on_conversation | 1337 | .. automethod:: StreamListener.on_conversation |
1338 | .. automethod:: StreamListener.on_status_update | ||
1339 | .. automethod:: StreamListener.on_unknown_event | 1339 | .. automethod:: StreamListener.on_unknown_event |
1340 | .. automethod:: StreamListener.on_abort | 1340 | .. automethod:: StreamListener.on_abort |
1341 | .. automethod:: StreamListener.handle_heartbeat | 1341 | .. automethod:: StreamListener.handle_heartbeat |