We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e78de73 commit 8d78a73Copy full SHA for 8d78a73
discord/ext/commands/cooldowns.py
@@ -71,10 +71,10 @@ def get_key(self, msg: Message) -> Any:
71
return (msg.guild and msg.guild.id), msg.author.id
72
elif self is BucketType.category:
73
return (
74
- msg.channel.category
+ msg.channel.category.id
75
if isinstance(msg.channel, discord.abc.GuildChannel)
76
- else msg.channel
77
- ).id
+ else msg.channel.id
+ )
78
elif self is BucketType.role:
79
# we return the channel id of a private-channel as there are only roles in guilds
80
# and that yields the same result as for a guild with only the @everyone role
0 commit comments