Skip to content

Commit

Permalink
Fix a bad check
Browse files Browse the repository at this point in the history
  • Loading branch information
EQUENOS committed Sep 18, 2023
1 parent b650009 commit ec3896d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions disnake/ext/commands/interaction_bot_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,8 @@ def add_app_command(self, app_command: InvokableApplicationCommand) -> None:
if not isinstance(self, disnake.Client):
raise NotImplementedError("This method is only usable in disnake.Client subclasses")

if not isinstance(slash_command, InvokableSlashCommand):
raise TypeError("The slash_command passed must be an instance of InvokableSlashCommand")
if not isinstance(app_command, InvokableApplicationCommand):
raise TypeError("The app_command passed must be an instance of InvokableApplicationCommand")

if app_command.guild_ids is None:
# if test_guilds are specified then we add the same command for each test guild
Expand Down

0 comments on commit ec3896d

Please sign in to comment.