mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-12-03 22:12:18 +00:00
[commands] Rename Cog.app_command_group to Cog.app_command
This allows it to be consistent with hybrid commands
This commit is contained in:
@@ -361,7 +361,7 @@ class Cog(metaclass=CogMeta):
|
|||||||
yield from command.walk_commands()
|
yield from command.walk_commands()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def app_command_group(self) -> Optional[app_commands.Group]:
|
def app_command(self) -> Optional[app_commands.Group]:
|
||||||
"""Optional[:class:`discord.app_commands.Group`]: Returns the associated group with this cog.
|
"""Optional[:class:`discord.app_commands.Group`]: Returns the associated group with this cog.
|
||||||
|
|
||||||
This is only available if inheriting from :class:`GroupCog`.
|
This is only available if inheriting from :class:`GroupCog`.
|
||||||
|
|||||||
Reference in New Issue
Block a user