mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 15:36:02 +00:00
Add operation documentation for VerificationLevel, ContentFilter
This commit is contained in:
parent
934456035e
commit
20fae90a08
42
docs/api.rst
42
docs/api.rst
@ -736,6 +736,27 @@ All enumerations are subclasses of `enum`_.
|
||||
Specifies a :class:`Guild`\'s verification level, which is the criteria in
|
||||
which a member must meet before being able to send messages to the guild.
|
||||
|
||||
.. container:: operations
|
||||
|
||||
.. describe:: x == y
|
||||
|
||||
Checks if two verification levels are equal.
|
||||
.. describe:: x != y
|
||||
|
||||
Checks if two verification levels are not equal.
|
||||
.. describe:: x > y
|
||||
|
||||
Checks if a verification level is higher than another.
|
||||
.. describe:: x < y
|
||||
|
||||
Checks if a verification level is lower than another.
|
||||
.. describe:: x >= y
|
||||
|
||||
Checks if a verification level is higher or equal to another.
|
||||
.. describe:: x <= y
|
||||
|
||||
Checks if a verification level is lower or equal to another.
|
||||
|
||||
.. attribute:: none
|
||||
|
||||
No criteria set.
|
||||
@ -768,6 +789,27 @@ All enumerations are subclasses of `enum`_.
|
||||
learning algorithms that Discord uses to detect if an image contains
|
||||
pornography or otherwise explicit content.
|
||||
|
||||
.. container:: operations
|
||||
|
||||
.. describe:: x == y
|
||||
|
||||
Checks if two content filter levels are equal.
|
||||
.. describe:: x != y
|
||||
|
||||
Checks if two content filter levels are not equal.
|
||||
.. describe:: x > y
|
||||
|
||||
Checks if a content filter level is higher than another.
|
||||
.. describe:: x < y
|
||||
|
||||
Checks if a content filter level is lower than another.
|
||||
.. describe:: x >= y
|
||||
|
||||
Checks if a content filter level is higher or equal to another.
|
||||
.. describe:: x <= y
|
||||
|
||||
Checks if a content filter level is lower or equal to another.
|
||||
|
||||
.. attribute:: disabled
|
||||
|
||||
The guild does not have the content filter enabled.
|
||||
|
Loading…
x
Reference in New Issue
Block a user