aboutsummaryrefslogtreecommitdiff
path: root/code/cogs/slash_handlers.py
diff options
context:
space:
mode:
authorParker <contact@pkrm.dev>2024-04-09 01:59:25 -0500
committerParker <contact@pkrm.dev>2024-04-09 01:59:25 -0500
commita550657990dfdef581bda3650a9500054c5e3262 (patch)
treee57f7e654365707a4902f03e382da8fcb1fdde3b /code/cogs/slash_handlers.py
parentccc9d5c566d223642dcbf0de1071d382032afb7d (diff)
Remove `CreatePlayerError` just go back to `AppCommandError`
Diffstat (limited to 'code/cogs/slash_handlers.py')
-rw-r--r--code/cogs/slash_handlers.py3
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"],