mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-11-16 13:13:01 +00:00
Add ChannelType.category enum value.
This commit is contained in:
@@ -31,6 +31,7 @@ class ChannelType(Enum):
|
|||||||
private = 1
|
private = 1
|
||||||
voice = 2
|
voice = 2
|
||||||
group = 3
|
group = 3
|
||||||
|
category = 4
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.name
|
return self.name
|
||||||
|
|||||||
@@ -468,6 +468,10 @@ All enumerations are subclasses of `enum`_.
|
|||||||
.. attribute:: group
|
.. attribute:: group
|
||||||
|
|
||||||
A private group text channel.
|
A private group text channel.
|
||||||
|
.. attribute:: category
|
||||||
|
|
||||||
|
A server category channel.
|
||||||
|
|
||||||
|
|
||||||
.. class:: MessageType
|
.. class:: MessageType
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user