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

@ -78,6 +78,9 @@ class Status(Enum):
online = 'online'
offline = 'offline'
idle = 'idle'
dnd = 'dnd'
do_not_disturb = 'dnd'
invisible = 'invisible'
def __str__(self):
return self.value