aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorRapptz <[email protected]>2015-10-14 21:09:31 -0400
committerRapptz <[email protected]>2015-10-15 01:37:54 -0400
commit9235a34916b7909ccff028c1d7ff4b36fb2dfd7a (patch)
tree106570855e910b8444cdda8b3879905d28ebb71b /docs
parentCheck if the server is valid during GUILD_MEMBER_REMOVE. (diff)
downloaddiscord.py-9235a34916b7909ccff028c1d7ff4b36fb2dfd7a.tar.xz
discord.py-9235a34916b7909ccff028c1d7ff4b36fb2dfd7a.zip
Handle GUILD_ROLE_CREATE websocket events.
Diffstat (limited to 'docs')
-rw-r--r--docs/api.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/api.rst b/docs/api.rst
index d796c3b1..a276233d 100644
--- a/docs/api.rst
+++ b/docs/api.rst
@@ -160,6 +160,13 @@ to handle it, which defaults to log a traceback and ignore the exception.
:param server: The :class:`Server` that got created or deleted.
+.. function:: on_server_role_create(server, role)
+
+ Called when a :class:`Server` creates a new :class:`Role`.
+
+ :param server: The :class:`Server` that was created.
+ :param role: The :class:`Role` that was created.
+
Utility Functions
-----------------