Skip to content

Commit

Permalink
Make sure group commands are Groups
Browse files Browse the repository at this point in the history
Fixes #425
  • Loading branch information
Gobot1234 committed Dec 21, 2023
1 parent 1b8f8fe commit 6db5147
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions steam/ext/commands/commands.py
Expand Up @@ -886,8 +886,7 @@ def group(
-------
The created group command.
"""

return command(callback, name=name, cls=cls, **attrs) # type: ignore
return command(callback, name=name, cls=cls or Group, **attrs) # type: ignore


def check(predicate: Callable[[Context], MaybeBool]) -> Check[MaybeBool]:
Expand Down

0 comments on commit 6db5147

Please sign in to comment.