Skip to content

Commit 15c1357

Browse files
RevnoplexDorukyum
andauthored
Update discord/ext/commands/cooldowns.py
Co-authored-by: Dorukyum <[email protected]> Signed-off-by: Revnoplex <[email protected]>
1 parent 8d78a73 commit 15c1357

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

discord/ext/commands/cooldowns.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ def get_key(self, msg: Message) -> Any:
7373
return (
7474
msg.channel.category.id
7575
if isinstance(msg.channel, discord.abc.GuildChannel)
76+
and channel.category
7677
else msg.channel.id
7778
)
7879
elif self is BucketType.role:

0 commit comments

Comments
 (0)