Skip to content

Commit

Permalink
Fix SlashCommandGroup description not being truly optional
Browse files Browse the repository at this point in the history
  • Loading branch information
NeloBlivion authored and Lulalaby committed Aug 23, 2022
1 parent 31d1deb commit ec1561e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions discord/commands/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ec1561e

Please sign in to comment.