From f488e0cdaccce2c3d4421e6fb95f4f0f7d19f668 Mon Sep 17 00:00:00 2001 From: dolfies Date: Fri, 12 May 2023 21:43:08 -0400 Subject: [PATCH] Improve ApplicationCommand.is_group() documentation formatting --- discord/commands.py | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/discord/commands.py b/discord/commands.py index 90e349e05..4604f7c1f 100644 --- a/discord/commands.py +++ b/discord/commands.py @@ -138,13 +138,7 @@ class ApplicationCommand(Protocol): return self._state._get_guild(self.guild_id) def is_group(self) -> bool: - """Query whether this command is a group. - - Returns - ------- - :class:`bool` - Whether this command is a group. - """ + """:class:`bool`: Whether this command is a group.""" return False @property @@ -820,13 +814,7 @@ class SubCommand(SlashMixin): return self._parent.guild def is_group(self) -> bool: - """Query whether this command is a group. - - Returns - ------- - :class:`bool` - Whether this command is a group. - """ + """:class:`bool`: Whether this command is a group.""" return self._type is ApplicationCommandOptionType.sub_command_group @property