Browse Source

Remove VerificationLevel aliases

pull/6887/merge
Stanisław Jelnicki 4 years ago
committed by GitHub
parent
commit
67aabc3230
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 13
      discord/enums.py
  2. 15
      docs/api.rst

13
discord/enums.py

@ -225,14 +225,11 @@ class SpeakingState(Enum):
return self.value
class VerificationLevel(Enum):
none = 0
low = 1
medium = 2
high = 3
table_flip = 3
extreme = 4
double_table_flip = 4
very_high = 4
none = 0
low = 1
medium = 2
high = 3
highest = 4
def __str__(self):
return self.name

15
docs/api.rst

@ -1301,23 +1301,10 @@ of :class:`enum.Enum`.
Member must have a verified email, be registered on Discord for more
than five minutes, and be a member of the guild itself for more than
ten minutes.
.. attribute:: table_flip
An alias for :attr:`high`.
.. attribute:: extreme
.. attribute:: highest
Member must have a verified phone on their Discord account.
.. attribute:: double_table_flip
An alias for :attr:`extreme`.
.. attribute:: very_high
An alias for :attr:`extreme`.
.. versionadded:: 1.4
.. class:: NotificationLevel
Specifies whether a :class:`Guild` has notifications on for all messages or mentions only by default.

Loading…
Cancel
Save