Skip to content

Commit ec1561e

Browse files
NeloBlivionLulalaby
authored andcommitted
Fix SlashCommandGroup description not being truly optional
1 parent 31d1deb commit ec1561e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

discord/commands/core.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,10 +1017,10 @@ def __init__(
10171017
parent: Optional[SlashCommandGroup] = None,
10181018
**kwargs,
10191019
) -> None:
1020-
validate_chat_input_name(name)
1021-
validate_chat_input_description(description)
10221020
self.name = str(name)
1023-
self.description = description
1021+
self.description = description or "No description provided"
1022+
validate_chat_input_name(self.name)
1023+
validate_chat_input_description(self.description)
10241024
self.input_type = SlashCommandOptionType.sub_command_group
10251025
self.subcommands: List[Union[SlashCommand, SlashCommandGroup]] = self.__initial_commands__
10261026
self.guild_ids = guild_ids

0 commit comments

Comments
 (0)