mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-08 02:43:01 +00:00
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:
24
docs/api.rst
24
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.
|
||||
|
Reference in New Issue
Block a user