Add aliases for button style colours
This commit is contained in:
parent
eda6680377
commit
80fd222ca0
@ -468,6 +468,12 @@ class ButtonStyle(Enum):
|
|||||||
danger = 4
|
danger = 4
|
||||||
link = 5
|
link = 5
|
||||||
|
|
||||||
|
# Aliases
|
||||||
|
blurple = 1
|
||||||
|
grey = 2
|
||||||
|
green = 3
|
||||||
|
red = 4
|
||||||
|
|
||||||
def __int__(self):
|
def __int__(self):
|
||||||
return self.value
|
return self.value
|
||||||
|
|
||||||
|
13
docs/api.rst
13
docs/api.rst
@ -1234,6 +1234,19 @@ of :class:`enum.Enum`.
|
|||||||
|
|
||||||
Represents a link button.
|
Represents a link button.
|
||||||
|
|
||||||
|
.. attribute:: blurple
|
||||||
|
|
||||||
|
An alias for :attr:`primary`.
|
||||||
|
.. attribute:: grey
|
||||||
|
|
||||||
|
An alias for :attr:`secondary`.
|
||||||
|
.. attribute:: green
|
||||||
|
|
||||||
|
An alias for :attr:`success`.
|
||||||
|
.. attribute:: red
|
||||||
|
|
||||||
|
An alias for :attr:`danger`.
|
||||||
|
|
||||||
.. class:: VoiceRegion
|
.. class:: VoiceRegion
|
||||||
|
|
||||||
Specifies the region a voice server belongs to.
|
Specifies the region a voice server belongs to.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user