mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-03 08:35:53 +00:00
[commands] Automatically unload top level app commands in extensions
This commit is contained in:
@ -263,6 +263,8 @@ class Cog(metaclass=CogMeta):
|
||||
if cls.__cog_is_app_commands_group__:
|
||||
# Dynamic attribute setting
|
||||
self.__discord_app_commands_group_children__ = children # type: ignore
|
||||
# Enforce this to work even if someone forgets __init__
|
||||
self.module = cls.__module__ # type: ignore
|
||||
|
||||
return self
|
||||
|
||||
|
Reference in New Issue
Block a user