Skip to content
This repository was archived by the owner on Dec 30, 2022. It is now read-only.

Commit 003138b

Browse files
authored
Fix AttributeError in @bot.slashgroup
1 parent a604671 commit 003138b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

appcommands/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ async def test1(ctx):
250250
:class:`appcommands.SubCommandGroup`
251251
The group by which commands will be made"""
252252
sub_command_group = SubCommandGroup(name, description)
253-
self.add_slash_command(sub_command_group)
253+
self.add_app_command(sub_command_group)
254254
return sub_command_group
255255

256256
async def register_commands(self) -> None:

0 commit comments

Comments
 (0)