aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorRapptz <[email protected]>2015-10-24 05:10:58 -0400
committerRapptz <[email protected]>2015-10-24 05:10:58 -0400
commit5efddaf35def4559e8f2124bc4fc6bf8acb8b158 (patch)
tree2794b6184cbd434a2f5ddd6d256aad940b1ec5e0 /docs
parentAdd Channel.mention to mention a channel. (diff)
downloaddiscord.py-5efddaf35def4559e8f2124bc4fc6bf8acb8b158.tar.xz
discord.py-5efddaf35def4559e8f2124bc4fc6bf8acb8b158.zip
Support unavailable servers.
Diffstat (limited to 'docs')
-rw-r--r--docs/api.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/api.rst b/docs/api.rst
index eb59ca27..8c288120 100644
--- a/docs/api.rst
+++ b/docs/api.rst
@@ -212,6 +212,14 @@ to handle it, which defaults to print a traceback and ignore the exception.
:param role: The :class:`Role` that was updated.
+.. function:: on_server_available(server)
+ on_server_unavailable(server)
+
+ Called when a server becomes available or unavailable. The server must have
+ existed in the :attr:`Client.servers` cache.
+
+ :param server: The :class:`Server` that has changed availability.
+
.. function:: on_voice_state_update(member)
Called when a :class:`Member` changes their voice state.