Allow enums to be compared
This commit is contained in:
48
docs/api.rst
48
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.
|
||||
|
Reference in New Issue
Block a user