Fix error when app_commands.Group misses a name

This commit is contained in:
ItsWilliboy 2023-09-28 16:41:11 +02:00 committed by GitHub
parent 576ab269e8
commit 555940352b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1548,6 +1548,9 @@ class Group:
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__: