diff --git a/disnake/ext/commands/interaction_bot_base.py b/disnake/ext/commands/interaction_bot_base.py index 6ff5f490ad..44a70793f7 100644 --- a/disnake/ext/commands/interaction_bot_base.py +++ b/disnake/ext/commands/interaction_bot_base.py @@ -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