From 140a8271906e16c0beec4968969e2df76d11116e Mon Sep 17 00:00:00 2001 From: Rapptz Date: Fri, 11 Mar 2022 08:33:37 -0500 Subject: [PATCH] Fix default guilds for commands not being respected Pesky little typo Fix #7641 --- discord/app_commands/tree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/app_commands/tree.py b/discord/app_commands/tree.py index ed5217da9..b937fed91 100644 --- a/discord/app_commands/tree.py +++ b/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