From e4cafb5057cac064db1dee0e86fe56dced1c74f6 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Tue, 28 Nov 2017 17:02:38 -0500 Subject: [PATCH] Add ChannelType.category enum value. --- discord/enums.py | 9 +++++---- docs/api.rst | 4 ++++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/discord/enums.py b/discord/enums.py index e8dc62d5f..dbb59f220 100644 --- a/discord/enums.py +++ b/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 diff --git a/docs/api.rst b/docs/api.rst index 58cc7c22b..084267cda 100644 --- a/docs/api.rst +++ b/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