Browse Source

Add ButtonStyle.url alias for ButtonStyle.link

pull/7154/head
Rapptz 4 years ago
parent
commit
4f0e907e44
  1. 1
      discord/enums.py
  2. 3
      docs/api.rst

1
discord/enums.py

@ -494,6 +494,7 @@ class ButtonStyle(Enum):
gray = 2
green = 3
red = 4
url = 5
def __int__(self):
return self.value

3
docs/api.rst

@ -1441,6 +1441,9 @@ of :class:`enum.Enum`.
.. attribute:: red
An alias for :attr:`danger`.
.. attribute:: url
An alias for :attr:`link`.
.. class:: VoiceRegion

Loading…
Cancel
Save