diff options
Diffstat (limited to 'code/cogs/slash_handlers.py')
-rw-r--r-- | code/cogs/slash_handlers.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/code/cogs/slash_handlers.py b/code/cogs/slash_handlers.py index e6f67b9..9f8f201 100644 --- a/code/cogs/slash_handlers.py +++ b/code/cogs/slash_handlers.py @@ -5,7 +5,6 @@ from discord.ext.commands.errors import * import datetime from global_variables import BOT_COLOR -from cogs.music import CreatePlayerError from custom_source import LoadError @@ -47,7 +46,7 @@ class slash_handlers(commands.Cog): # ) # await interaction.response.send_message(embed=embed, ephemeral=True) - elif isinstance(error, CreatePlayerError): + elif isinstance(error, app_commands.AppCommandError): embed = discord.Embed( title=error.args[0]["title"], description=error.args[0]["description"], |