Add support for "Do Not Disturb" and "Invisible" statuses.

This deprecates Client.change_status in favour of the newer and more
correct Client.change_presence.
This commit is contained in:
Rapptz
2016-09-26 19:54:52 -04:00
parent fc1155c160
commit 7272190e2d
5 changed files with 86 additions and 8 deletions

View File

@ -549,6 +549,17 @@ All enumerations are subclasses of `enum`_.
.. attribute:: idle
The member is idle.
.. attribute:: dnd
The member is "Do Not Disturb".
.. attribute:: do_not_disturb
An alias for :attr:`dnd`.
.. attribute:: invisible
The member is "invisible". In reality, this is only used in sending
a presence a la :meth:`Client.change_presence`. When you receive a
user's presence this will be :attr:`offline` instead.
.. _discord_api_data: