Skip to content

Commit f2eace9

Browse files
committed
📝 standardize nameplate color attributes to lowercase and document each color in enums
1 parent 4c747a5 commit f2eace9

File tree

2 files changed

+54
-12
lines changed

2 files changed

+54
-12
lines changed

discord/enums.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,17 +1084,17 @@ class NameplatePalette(Enum):
10841084
.. versionadded:: 2.7
10851085
"""
10861086

1087-
CRIMSON = "crimson"
1088-
BERRY = "berry"
1089-
SKY = "sky"
1090-
TEAL = "teal"
1091-
FOREST = "forest"
1092-
BUBBLE_GUM = "bubble_gum"
1093-
VIOLET = "violet"
1094-
COBALT = "cobalt"
1095-
CLOVER = "clover"
1096-
LEMON = "lemon"
1097-
WHITE = "white"
1087+
crimson = "crimson"
1088+
berry = "berry"
1089+
sky = "sky"
1090+
teal = "teal"
1091+
forest = "forest"
1092+
bubble_gum = "bubble_gum"
1093+
violet = "violet"
1094+
cobalt = "cobalt"
1095+
clover = "clover"
1096+
lemon = "lemon"
1097+
white = "white"
10981098

10991099

11001100
T = TypeVar("T")

docs/api/enums.rst

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2526,4 +2526,46 @@ of :class:`enum.Enum`.
25262526
25272527
.. versionadded:: 2.7
25282528
2529-
:members:
2529+
.. attribute:: crimson
2530+
2531+
Crimson nameplate color palette.
2532+
2533+
.. attribute:: berry
2534+
2535+
Berry nameplate color palette.
2536+
2537+
.. attribute:: sky
2538+
2539+
Sky nameplate color palette.
2540+
2541+
.. attribute:: teal
2542+
2543+
Teal nameplate color palette.
2544+
2545+
.. attribute:: forest
2546+
2547+
Forest nameplate color palette.
2548+
2549+
.. attribute:: bubble_gum
2550+
2551+
Bubble_gum nameplate color palette.
2552+
2553+
.. attribute:: violet
2554+
2555+
Violet nameplate color palette.
2556+
2557+
.. attribute:: cobalt
2558+
2559+
Cobalt nameplate color palette.
2560+
2561+
.. attribute:: clover
2562+
2563+
Clover nameplate color palette.
2564+
2565+
.. attribute:: lemon
2566+
2567+
Lemon nameplate color palette.
2568+
2569+
.. attribute:: white
2570+
2571+
White nameplate color palette.

0 commit comments

Comments
 (0)