From 20fae90a08bd0cdf809d0d38a45835377047559e Mon Sep 17 00:00:00 2001 From: Gorialis Date: Wed, 2 Aug 2017 01:38:15 +0900 Subject: [PATCH] Add operation documentation for VerificationLevel, ContentFilter --- docs/api.rst | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/docs/api.rst b/docs/api.rst index 8a3240afb..96c9eeca7 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.