aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2019-03-17 15:16:46 -0400
committerRapptz <[email protected]>2019-03-17 15:16:46 -0400
commitcb9ae7bd76a2db1547656852144514353d27295a (patch)
tree5e1278fc1ab9a59836897b76fb7660b42fa36519
parentFix typo in private property name. (diff)
downloaddiscord.py-cb9ae7bd76a2db1547656852144514353d27295a.tar.xz
discord.py-cb9ae7bd76a2db1547656852144514353d27295a.zip
Sorting bucket requires an integer.
-rw-r--r--discord/channel.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/channel.py b/discord/channel.py
index dbbae23c..b6a39ca9 100644
--- a/discord/channel.py
+++ b/discord/channel.py
@@ -590,7 +590,7 @@ class CategoryChannel(discord.abc.GuildChannel, Hashable):
@property
def _sorting_bucket(self):
- return ChannelType.category
+ return ChannelType.category.value
def is_nsfw(self):
"""Checks if the category is NSFW."""