Skip to content

Commit 248f2a6

Browse files
authored
localizations
1 parent 613aa11 commit 248f2a6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

discord/bot.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,11 @@ def _check_command(cmd: ApplicationCommand, match: Mapping[str, Any]) -> bool:
329329
# We have a difference
330330
return True
331331
elif getattr(cmd, check, None) != match.get(check):
332-
# We have a difference
333-
if (
332+
# We might have a difference
333+
if "localizations" in check and bool(attr) == bool(found):
334+
# unlike other attrs, localizations are MISSING by default
335+
continue
336+
elif (
334337
check == "default_permission"
335338
and getattr(cmd, check) is True
336339
and match.get(check) is None

0 commit comments

Comments
 (0)