aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorGorialis <[email protected]>2017-08-02 01:38:15 +0900
committerGorialis <[email protected]>2017-08-02 01:38:15 +0900
commit20fae90a08bd0cdf809d0d38a45835377047559e (patch)
treea4d8d1fb80d9c14c6ccef97cb8cc3fe5b10cc53d /docs
parentChange VerificationLevel, ContentFilter to be IntEnums (diff)
downloaddiscord.py-20fae90a08bd0cdf809d0d38a45835377047559e.tar.xz
discord.py-20fae90a08bd0cdf809d0d38a45835377047559e.zip
Add operation documentation for VerificationLevel, ContentFilter
Diffstat (limited to 'docs')
-rw-r--r--docs/api.rst42
1 files changed, 42 insertions, 0 deletions
diff --git a/docs/api.rst b/docs/api.rst
index 8a3240af..96c9eeca 100644
--- a/docs/api.rst
+++ b/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.