aboutsummaryrefslogtreecommitdiff
path: root/code/cogs/slash_handlers.py
diff options
context:
space:
mode:
Diffstat (limited to 'code/cogs/slash_handlers.py')
-rw-r--r--code/cogs/slash_handlers.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/code/cogs/slash_handlers.py b/code/cogs/slash_handlers.py
index 9f8f201..e36a5cc 100644
--- a/code/cogs/slash_handlers.py
+++ b/code/cogs/slash_handlers.py
@@ -4,7 +4,7 @@ from discord import app_commands
from discord.ext.commands.errors import *
import datetime
-from global_variables import BOT_COLOR
+from global_variables import BOT_COLOR, CheckPlayerError
from custom_source import LoadError
@@ -46,10 +46,10 @@ class slash_handlers(commands.Cog):
# )
# await interaction.response.send_message(embed=embed, ephemeral=True)
- elif isinstance(error, app_commands.AppCommandError):
+ elif isinstance(error, CheckPlayerError):
embed = discord.Embed(
- title=error.args[0]["title"],
- description=error.args[0]["description"],
+ title=error.info["title"],
+ description=error.info["description"],
color=BOT_COLOR,
)
embed.set_footer(