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 8d78a73 commit 15c1357Copy full SHA for 15c1357
discord/ext/commands/cooldowns.py
@@ -73,6 +73,7 @@ def get_key(self, msg: Message) -> Any:
73
return (
74
msg.channel.category.id
75
if isinstance(msg.channel, discord.abc.GuildChannel)
76
+ and channel.category
77
else msg.channel.id
78
)
79
elif self is BucketType.role:
0 commit comments