Browse Source

Lowercase enum members

"it works"
pull/10227/head
Soheab_ 6 days ago
parent
commit
1ab117a8e9
  1. 6
      discord/enums.py
  2. 6
      docs/api.rst

6
discord/enums.py

@ -914,9 +914,9 @@ class SubscriptionStatus(Enum):
class StatusDisplayType(Enum):
NAME = 0
STATE = 1
DETAILS = 2
name = 0 # pyright: ignore[reportAssignmentType]
state = 1
details = 2
def create_unknown_value(cls: Type[E], val: Any) -> E:

6
docs/api.rst

@ -3888,15 +3888,15 @@ of :class:`enum.Enum`.
.. versionadded:: 2.6
.. attribute:: NAME
.. attribute:: name
The name of the activity is displayed.
.. attribute:: STATE
.. attribute:: state
The state of the activity is displayed.
.. attribute:: DETAILS
.. attribute:: details
The details of the activity are displayed.

Loading…
Cancel
Save