diff options
| author | Rapptz <[email protected]> | 2016-01-25 01:53:35 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2016-01-25 01:55:31 -0500 |
| commit | 8b1854e759a28a1ecd84bdc80f5a50722fb9f2db (patch) | |
| tree | 665ea7034a766efa7f0ec137473e1ff6a31a1c3f /docs/migrating.rst | |
| parent | HTTPException now has a text attribute if JSON is not available. (diff) | |
| download | discord.py-8b1854e759a28a1ecd84bdc80f5a50722fb9f2db.tar.xz discord.py-8b1854e759a28a1ecd84bdc80f5a50722fb9f2db.zip | |
Add and remove some of the on_socket_* events.
on_socket_raw_receive and on_socket_raw_send were added back in an odd
way. The rest of them such as on_socket_closed, on_socket_opened, and
on_socket_receive were removed.
Diffstat (limited to 'docs/migrating.rst')
| -rw-r--r-- | docs/migrating.rst | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/migrating.rst b/docs/migrating.rst index 2b60cb2b..5e909e0f 100644 --- a/docs/migrating.rst +++ b/docs/migrating.rst @@ -79,6 +79,7 @@ Before: def on_status(member): pass def on_server_role_update(role): pass def on_voice_state_update(member): pass + def on_socket_raw_send(payload, is_binary): pass After: @@ -89,9 +90,10 @@ After: def on_member_update(before, after): pass def on_server_role_update(before, after): pass def on_voice_state_update(before, after): pass + def on_socket_raw_send(payload): pass Note that ``on_status`` was removed. If you want its functionality, use :func:`on_member_update`. -See :ref:`discord-api-events` for more information. +See :ref:`discord-api-events` for more information. Other removed events include ``on_socket_closed``, ``on_socket_receive``, and ``on_socket_opened``. .. _migrating-coroutines: |