aboutsummaryrefslogtreecommitdiff
path: root/docs
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 /docs
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 'docs')
-rw-r--r--docs/api.rst24
1 files changed, 24 insertions, 0 deletions
diff --git a/docs/api.rst b/docs/api.rst
index 168a6f19..02572dd2 100644
--- a/docs/api.rst
+++ b/docs/api.rst
@@ -512,6 +512,30 @@ All enumerations are subclasses of `enum`_.
The Amsterdam region for VIP servers.
+.. class:: VerificationLevel
+
+ Specifies a :class:`Server`\'s verification level, which is the criteria in
+ which a member must meet before being able to send messages to the server.
+
+ .. attribute:: none
+
+ No criteria set.
+ .. attribute:: low
+
+ Member must have a verified email on their Discord account.
+ .. attribute:: medium
+
+ Member must have a verified email and be registered on Discord for more
+ than five minutes.
+ .. attribute:: high
+
+ Member must have a verified email, be registered on Discord for more
+ than five minutes, and be a member of the server itself for more than
+ ten minutes.
+ .. attribute:: table_flip
+
+ An alias for :attr:`high`.
+
.. class:: Status
Specifies a :class:`Member` 's status.