mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-25 02:23:04 +00:00
Change default guild IDs attribute to persist on copy
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user