From a550657990dfdef581bda3650a9500054c5e3262 Mon Sep 17 00:00:00 2001 From: Parker Date: Tue, 9 Apr 2024 01:59:25 -0500 Subject: Remove `CreatePlayerError` just go back to `AppCommandError` --- code/cogs/slash_handlers.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'code/cogs/slash_handlers.py') 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"], -- cgit v1.2.3-70-g09d2