Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/i18n/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def localize_commands[ # noqa: PLR0912
discord.SlashCommandGroup,
prefixed.Command, # pyright: ignore[reportMissingTypeArgument]
discord.MessageCommand,
discord.UserCommand,
)
](
commands: list[T],
Expand Down Expand Up @@ -101,7 +102,12 @@ def localize_commands[ # noqa: PLR0912
tot = 0
for command in commands:
if isinstance(
command, discord.SlashCommand | discord.SlashCommandGroup | prefixed.Command | discord.MessageCommand
command,
discord.SlashCommand
| discord.SlashCommandGroup
| prefixed.Command
| discord.MessageCommand
| discord.UserCommand,
):
tot += 1
try:
Expand Down
Loading