aboutsummaryrefslogtreecommitdiff
path: root/docs/api.rst
diff options
context:
space:
mode:
authorRapptz <[email protected]>2016-08-01 18:52:34 -0400
committerRapptz <[email protected]>2016-08-01 18:52:34 -0400
commit45083a6f154d4c50ea18b9ba5a7593f7138f1e82 (patch)
treec3af6c282dd1f17e7a7fef888765f5a9dc64d94c /docs/api.rst
parent[commands] Add custom emoji converter. (diff)
downloaddiscord.py-45083a6f154d4c50ea18b9ba5a7593f7138f1e82.tar.xz
discord.py-45083a6f154d4c50ea18b9ba5a7593f7138f1e82.zip
Document the new emoji stuff.
Diffstat (limited to 'docs/api.rst')
-rw-r--r--docs/api.rst15
1 files changed, 14 insertions, 1 deletions
diff --git a/docs/api.rst b/docs/api.rst
index 6841475e..1e2b82cd 100644
--- a/docs/api.rst
+++ b/docs/api.rst
@@ -280,7 +280,14 @@ to handle it, which defaults to print a traceback and ignore the exception.
Called when a :class:`Role` is changed server-wide.
:param before: The :class:`Role` that updated with the old info.
- :param after: The :class:`Role` that updated with the updated info
+ :param after: The :class:`Role` that updated with the updated info.
+
+.. function:: on_server_emojis_update(before, after)
+
+ Called when a :class:`Server` adds or removes :class:`Emoji`.
+
+ :param before: A list of :class:`Emoji` before the update.
+ :param after: A list of :class:`Emoji` after the update.
.. function:: on_server_available(server)
on_server_unavailable(server)
@@ -583,6 +590,12 @@ Game
.. autoclass:: Game
:members:
+Emoji
+~~~~~
+
+.. autoclass:: Emoji
+ :members:
+
Role
~~~~~