Skip to content

Commit 7c571b7

Browse files
committed
Fix order of parameters
1 parent 2d1319f commit 7c571b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discord/bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def add_application_command(self, command: ApplicationCommand) -> None:
119119
The command to add.
120120
"""
121121
try:
122-
if getattr("parent", command) is not None:
122+
if getattr(command, "parent") is not None:
123123
raise TypeError("The provided command is a sub-command of group")
124124
except AttributeError:
125125
pass

0 commit comments

Comments
 (0)