mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-18 23:15:48 +00:00
[commands] Fix cog eject behaviour with application commands
This was using the old attribute I forgot to change.
This commit is contained in:
parent
71586836e1
commit
d210f799ee
@ -514,9 +514,8 @@ class Cog(metaclass=CogMeta):
|
||||
|
||||
if not cls.__cog_is_app_commands_group__:
|
||||
for command in self.__cog_app_commands__:
|
||||
try:
|
||||
guild_ids = command.__discord_app_commands_default_guilds__
|
||||
except AttributeError:
|
||||
guild_ids = command._guild_ids
|
||||
if guild_ids is None:
|
||||
bot.tree.remove_command(command.name)
|
||||
else:
|
||||
for guild_id in guild_ids:
|
||||
|
Loading…
x
Reference in New Issue
Block a user