Browse Source

Add ChannelType.category enum value.

pull/934/merge
Rapptz 7 years ago
parent
commit
e4cafb5057
  1. 9
      discord/enums.py
  2. 4
      docs/api.rst

9
discord/enums.py

@ -27,10 +27,11 @@ DEALINGS IN THE SOFTWARE.
from enum import Enum
class ChannelType(Enum):
text = 0
private = 1
voice = 2
group = 3
text = 0
private = 1
voice = 2
group = 3
category = 4
def __str__(self):
return self.name

4
docs/api.rst

@ -468,6 +468,10 @@ All enumerations are subclasses of `enum`_.
.. attribute:: group
A private group text channel.
.. attribute:: category
A server category channel.
.. class:: MessageType

Loading…
Cancel
Save