Skip to content

Commit 5a5511a

Browse files
style(pre-commit): auto fixes from pre-commit.com hooks
1 parent 7d493df commit 5a5511a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

discord/ext/commands/cooldowns.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,11 @@ def get_key(self, msg: Message) -> Any:
7070
elif self is BucketType.member:
7171
return (msg.guild and msg.guild.id), msg.author.id
7272
elif self is BucketType.category:
73-
return (msg.channel.category if isinstance(msg.channel, discord.abc.GuildChannel) else msg.channel).id
73+
return (
74+
msg.channel.category
75+
if isinstance(msg.channel, discord.abc.GuildChannel)
76+
else msg.channel
77+
).id
7478
elif self is BucketType.role:
7579
# we return the channel id of a private-channel as there are only roles in guilds
7680
# and that yields the same result as for a guild with only the @everyone role

0 commit comments

Comments
 (0)