[commands] Rename Cog.app_command_group to Cog.app_command

This allows it to be consistent with hybrid commands
This commit is contained in:
Rapptz 2022-05-01 19:04:53 -04:00
parent 619bc50e5d
commit e8a2eeea06

View File

@ -361,7 +361,7 @@ class Cog(metaclass=CogMeta):
yield from command.walk_commands()
@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.
This is only available if inheriting from :class:`GroupCog`.