aboutsummaryrefslogtreecommitdiff
path: root/discord/enums.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2016-09-12 22:38:06 -0400
committerRapptz <[email protected]>2016-09-12 22:38:06 -0400
commit203c64a9a43b7e4da7b8f118abcf30eaea7b7b96 (patch)
treed7ba393ce45cec95cf79133a86ef853501fc2b15 /discord/enums.py
parentDocument new MessageType.pins_add (diff)
downloaddiscord.py-203c64a9a43b7e4da7b8f118abcf30eaea7b7b96.tar.xz
discord.py-203c64a9a43b7e4da7b8f118abcf30eaea7b7b96.zip
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.
Diffstat (limited to 'discord/enums.py')
-rw-r--r--discord/enums.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/discord/enums.py b/discord/enums.py
index c5cdb6f3..191728ee 100644
--- a/discord/enums.py
+++ b/discord/enums.py
@@ -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'