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. 5
      discord/enums.py
  2. 15
      docs/api.rst

5
discord/enums.py

@ -229,10 +229,7 @@ class VerificationLevel(Enum):
low = 1 low = 1
medium = 2 medium = 2
high = 3 high = 3
table_flip = 3 highest = 4
extreme = 4
double_table_flip = 4
very_high = 4
def __str__(self): def __str__(self):
return self.name 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 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 than five minutes, and be a member of the guild itself for more than
ten minutes. ten minutes.
.. attribute:: table_flip .. attribute:: highest
An alias for :attr:`high`.
.. attribute:: extreme
Member must have a verified phone on their Discord account. 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 .. class:: NotificationLevel
Specifies whether a :class:`Guild` has notifications on for all messages or mentions only by default. Specifies whether a :class:`Guild` has notifications on for all messages or mentions only by default.

Loading…
Cancel
Save