aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorSebastian Law <[email protected]>2021-08-23 23:28:39 -0700
committerGitHub <[email protected]>2021-08-24 02:28:39 -0400
commit835432d1619f2834e3e2d9c91b4494fa12173662 (patch)
treeabbaf0f9f5c974ae1af58f42daa3e1fba409be39 /docs
parentClarify connect() requires Intents.voice_states (diff)
downloaddiscord.py-835432d1619f2834e3e2d9c91b4494fa12173662.tar.xz
discord.py-835432d1619f2834e3e2d9c91b4494fa12173662.zip
Allow enums to be compared
Diffstat (limited to 'docs')
-rw-r--r--docs/api.rst48
1 files changed, 48 insertions, 0 deletions
diff --git a/docs/api.rst b/docs/api.rst
index 1ce97377..f5f96e41 100644
--- a/docs/api.rst
+++ b/docs/api.rst
@@ -1591,6 +1591,8 @@ of :class:`enum.Enum`.
.. container:: operations
+ .. versionadded:: 2.0
+
.. describe:: x == y
Checks if two verification levels are equal.
@@ -1633,6 +1635,29 @@ of :class:`enum.Enum`.
Specifies whether a :class:`Guild` has notifications on for all messages or mentions only by default.
+ .. container:: operations
+
+ .. versionadded:: 2.0
+
+ .. describe:: x == y
+
+ Checks if two notification levels are equal.
+ .. describe:: x != y
+
+ Checks if two notification levels are not equal.
+ .. describe:: x > y
+
+ Checks if a notification level is higher than another.
+ .. describe:: x < y
+
+ Checks if a notification level is lower than another.
+ .. describe:: x >= y
+
+ Checks if a notification level is higher or equal to another.
+ .. describe:: x <= y
+
+ Checks if a notification level is lower or equal to another.
+
.. attribute:: all_messages
Members receive notifications for every message regardless of them being mentioned.
@@ -1648,6 +1673,8 @@ of :class:`enum.Enum`.
.. container:: operations
+ .. versionadded:: 2.0
+
.. describe:: x == y
Checks if two content filter levels are equal.
@@ -2532,6 +2559,27 @@ of :class:`enum.Enum`.
.. versionadded:: 2.0
+ .. container:: operations
+
+ .. describe:: x == y
+
+ Checks if two NSFW levels are equal.
+ .. describe:: x != y
+
+ Checks if two NSFW levels are not equal.
+ .. describe:: x > y
+
+ Checks if a NSFW level is higher than another.
+ .. describe:: x < y
+
+ Checks if a NSFW level is lower than another.
+ .. describe:: x >= y
+
+ Checks if a NSFW level is higher or equal to another.
+ .. describe:: x <= y
+
+ Checks if a NSFW level is lower or equal to another.
+
.. attribute:: default
The guild has not been categorised yet.