diff options
| author | Rapptz <[email protected]> | 2016-09-12 22:38:06 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2016-09-12 22:38:06 -0400 |
| commit | 203c64a9a43b7e4da7b8f118abcf30eaea7b7b96 (patch) | |
| tree | d7ba393ce45cec95cf79133a86ef853501fc2b15 /docs | |
| parent | Document new MessageType.pins_add (diff) | |
| download | discord.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.rst | 24 |
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. |