From ec3896d0b6f42d99ed9f9d329a61351d53b35680 Mon Sep 17 00:00:00 2001 From: EQUENOS <50338932+EQUENOS@users.noreply.github.com> Date: Mon, 18 Sep 2023 15:09:37 +0300 Subject: [PATCH] Fix a bad check --- disnake/ext/commands/interaction_bot_base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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