mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 15:36:02 +00:00
Add ChannelType.category enum value.
This commit is contained in:
parent
9f1bb19d77
commit
e4cafb5057
@ -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
|
||||
|
@ -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…
x
Reference in New Issue
Block a user