Change default guild IDs attribute to persist on copy

This commit is contained in:
Rapptz
2022-03-09 19:11:30 -05:00
parent 0d126c594c
commit 5741ad9368
2 changed files with 7 additions and 6 deletions

View File

@@ -65,7 +65,7 @@ def _retrieve_guild_ids(
# 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:
return getattr(command, '__discord_app_commands_default_guilds__', None)
return getattr(command, '_guild_ids', None)
# guilds=[] is the same as global
if len(guilds) == 0: