aboutsummaryrefslogtreecommitdiff
path: root/docs/api.rst
diff options
context:
space:
mode:
authorRapptz <[email protected]>2015-08-23 23:37:41 -0400
committerRapptz <[email protected]>2015-08-23 23:37:56 -0400
commit35084cf98a1d861361c17009df3db30aabf1244a (patch)
tree5ee14e9d882070b53f22d29eb7efe082a180a412 /docs/api.rst
parentFix setuputils script (diff)
downloaddiscord.py-35084cf98a1d861361c17009df3db30aabf1244a.tar.xz
discord.py-35084cf98a1d861361c17009df3db30aabf1244a.zip
Add support for channel creation events.
Diffstat (limited to 'docs/api.rst')
-rw-r--r--docs/api.rst7
1 files changed, 5 insertions, 2 deletions
diff --git a/docs/api.rst b/docs/api.rst
index 79a58cd8..9909bcd1 100644
--- a/docs/api.rst
+++ b/docs/api.rst
@@ -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
--------------