Add support for channel creation events.

This commit is contained in:
Rapptz
2015-08-23 23:37:41 -04:00
parent 9b99834221
commit 35084cf98a
3 changed files with 25 additions and 7 deletions

View File

@ -64,12 +64,15 @@ All events are 'sandboxed', in that if an exception is thrown while the event is
:param game_id: The game ID that the user is playing. Can be None.
.. function:: on_channel_delete(channel)
on_channel_create(channel)
Called whenever a channel is removed from a server.
Called whenever a channel is removed or added from a server.
Note that you can get the server from :attr:`Channel.server`.
:func:`on_channel_create` could also pass in a :class:`PrivateChannel` depending
on the value of :attr:`Channel.is_private`.
:param channel: The :class:`Channel` that got deleted.
:param channel: The :class:`Channel` that got added or deleted.
Data Classes
--------------