Skip to content

Commit 93ee503

Browse files
committed
Merge remote-tracking branch 'refs/remotes/origin/master'
2 parents 6f5a949 + 5a5511a commit 93ee503

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
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

docs/old_changelog.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ Bug Fixes
625625
- Fix out of order files being sent in webhooks when there are 10 files.
626626
- |commands| Extensions that fail internally due to ImportError will no longer raise :exc:`~.ext.commands.ExtensionNotFound`. (:dpy-issue:`2244`, :dpy-issue:`2275`, :dpy-issue:`2291`)
627627
- |commands| Updating the :attr:`Paginator.suffix <.ext.commands.Paginator.suffix>` will not cause out of date calculations. (:dpy-issue:`2251`)
628-
- |commands| Allow converters from custom extension packages. (:dpy-issue:`2369`, :dpy-issue:`2374`)
628+
- |commands| Allow converters from custom extension packages. (:dpy-issue:`2369`, 2374)
629629
- |commands| Fix issue with paginator prefix being ``None`` causing empty pages. (:dpy-issue:`2471`)
630630
- |commands| :class:`~.commands.Greedy` now ignores parsing errors rather than propagating them.
631631
- |commands| :meth:`Command.can_run <.ext.commands.Command.can_run>` now checks whether a command is disabled.

requirements/dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pytest-asyncio~=0.23.8
55
# pytest-order~=1.0.1
66
mypy~=1.11.2
77
coverage~=7.6
8-
pre-commit==4.0.0
8+
pre-commit==4.0.1
99
codespell==2.3.0
1010
bandit==1.7.10
1111
flake8==7.1.1

0 commit comments

Comments
 (0)