diff options
| author | Rapptz <[email protected]> | 2015-08-23 02:53:56 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2015-08-23 02:53:56 -0400 |
| commit | 3346b28feee0f5900080ad026b369673e6f3c6a9 (patch) | |
| tree | 53ccbff2485a2caad386503a56fe66b6f49617ff /docs/api.rst | |
| parent | Sandbox events so exceptions being thrown don't break the client. (diff) | |
| download | discord.py-3346b28feee0f5900080ad026b369673e6f3c6a9.tar.xz discord.py-3346b28feee0f5900080ad026b369673e6f3c6a9.zip | |
Add on_channel_delete event.
Diffstat (limited to 'docs/api.rst')
| -rw-r--r-- | docs/api.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/api.rst b/docs/api.rst index a161fe97..79a58cd8 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -63,6 +63,13 @@ All events are 'sandboxed', in that if an exception is thrown while the event is :param status: The new status of the user. :param game_id: The game ID that the user is playing. Can be None. +.. function:: on_channel_delete(channel) + + Called whenever a channel is removed from a server. + + Note that you can get the server from :attr:`Channel.server`. + + :param channel: The :class:`Channel` that got deleted. Data Classes -------------- |