We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31d1deb commit ec1561eCopy full SHA for ec1561e
discord/commands/core.py
@@ -1017,10 +1017,10 @@ def __init__(
1017
parent: Optional[SlashCommandGroup] = None,
1018
**kwargs,
1019
) -> None:
1020
- validate_chat_input_name(name)
1021
- validate_chat_input_description(description)
1022
self.name = str(name)
1023
- self.description = description
+ self.description = description or "No description provided"
+ validate_chat_input_name(self.name)
+ validate_chat_input_description(self.description)
1024
self.input_type = SlashCommandOptionType.sub_command_group
1025
self.subcommands: List[Union[SlashCommand, SlashCommandGroup]] = self.__initial_commands__
1026
self.guild_ids = guild_ids
0 commit comments