Skip to content

Commit

Permalink
Fix error when app_commands.Group misses a name
Browse files Browse the repository at this point in the history
  • Loading branch information
itswilliboy committed Sep 28, 2023
1 parent 576ab26 commit 5559403
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions discord/app_commands/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -1548,6 +1548,9 @@ def __init__(
if not self.description:
raise TypeError('groups must have a description')

if not self.name:
raise TypeError('groups must have a name')

self.parent: Optional[Group] = parent
self.module: Optional[str]
if cls.__discord_app_commands_has_module__:
Expand Down

0 comments on commit 5559403

Please sign in to comment.