Add aliases for button style colours

This commit is contained in:
Rapptz 2021-04-28 01:44:50 -04:00
parent eda6680377
commit 80fd222ca0
2 changed files with 19 additions and 0 deletions

View File

@ -468,6 +468,12 @@ class ButtonStyle(Enum):
danger = 4
link = 5
# Aliases
blurple = 1
grey = 2
green = 3
red = 4
def __int__(self):
return self.value

View File

@ -1234,6 +1234,19 @@ of :class:`enum.Enum`.
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
Specifies the region a voice server belongs to.