mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 20:28:38 +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__:
|
if not cls.__cog_is_app_commands_group__:
|
||||||
for command in self.__cog_app_commands__:
|
for command in self.__cog_app_commands__:
|
||||||
try:
|
guild_ids = command._guild_ids
|
||||||
guild_ids = command.__discord_app_commands_default_guilds__
|
if guild_ids is None:
|
||||||
except AttributeError:
|
|
||||||
bot.tree.remove_command(command.name)
|
bot.tree.remove_command(command.name)
|
||||||
else:
|
else:
|
||||||
for guild_id in guild_ids:
|
for guild_id in guild_ids:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user