Browse Source

Fix default guilds for commands not being respected

Pesky little typo

Fix #7641
pull/7642/head
Rapptz 3 years ago
parent
commit
140a827190
  1. 2
      discord/app_commands/tree.py

2
discord/app_commands/tree.py

@ -64,7 +64,7 @@ def _retrieve_guild_ids(
if guild is MISSING:
# If no arguments are given then it should default to the ones
# given to the guilds(...) decorator or None for global.
if guild is MISSING:
if guilds is MISSING:
return getattr(command, '_guild_ids', None)
# guilds=[] is the same as global

Loading…
Cancel
Save