From e5f318e230363096f719f70c91de3c9ffbaea43a Mon Sep 17 00:00:00 2001 From: NeloBlivion <41271523+NeloBlivion@users.noreply.github.com> Date: Tue, 23 Aug 2022 05:11:16 +0100 Subject: [PATCH] Fix SlashCommandGroup description not being truly optional --- discord/commands/core.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/discord/commands/core.py b/discord/commands/core.py index 5d2be7b539..1d78d8aa46 100644 --- a/discord/commands/core.py +++ b/discord/commands/core.py @@ -1017,10 +1017,10 @@ def __init__( parent: Optional[SlashCommandGroup] = None, **kwargs, ) -> None: - validate_chat_input_name(name) - validate_chat_input_description(description) self.name = str(name) - self.description = description + self.description = description or "No description provided" + validate_chat_input_name(self.name) + validate_chat_input_description(self.description) self.input_type = SlashCommandOptionType.sub_command_group self.subcommands: List[Union[SlashCommand, SlashCommandGroup]] = self.__initial_commands__ self.guild_ids = guild_ids