Add support for server verification levels.

This adds a new enum named VerificationLevel to denote said verification
level. This enum will also be used in the Client.edit_server calls
instead of the undocumented int parameter.
This commit is contained in:
Rapptz
2016-09-12 22:38:06 -04:00
parent 713037836c
commit 203c64a9a4
5 changed files with 50 additions and 10 deletions

View File

@@ -64,6 +64,16 @@ class ServerRegion(Enum):
def __str__(self):
return self.value
class VerificationLevel(Enum):
none = 0
low = 1
medium = 2
high = 3
table_flip = 3
def __str__(self):
return self.name
class Status(Enum):
online = 'online'
offline = 'offline'