From 1ab117a8e949fc6ff0dd8df5548dd947cd4ae425 Mon Sep 17 00:00:00 2001 From: Soheab_ <33902984+Soheab@users.noreply.github.com> Date: Fri, 11 Jul 2025 22:52:43 +0200 Subject: [PATCH] Lowercase enum members "it works" --- discord/enums.py | 6 +++--- docs/api.rst | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/discord/enums.py b/discord/enums.py index 2a3248f87..ea5b04673 100644 --- a/discord/enums.py +++ b/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: diff --git a/docs/api.rst b/docs/api.rst index 24345e68a..0fa479caa 100644 --- a/docs/api.rst +++ b/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.