diff --git a/didier/didier.py b/didier/didier.py index ff581f4..318cc1c 100644 --- a/didier/didier.py +++ b/didier/didier.py @@ -7,7 +7,6 @@ from typing import Optional, Union import discord from aiohttp import ClientSession -from discord.app_commands import AppCommandError from discord.ext import commands from sqlalchemy.ext.asyncio import AsyncSession @@ -246,7 +245,7 @@ class Didier(commands.Bot): async with self.postgres_session as session: await command_stats.register_command_invocation(session, ctx, command, tz_aware_now()) - async def on_app_command_error(self, interaction: discord.Interaction, exception: AppCommandError): + async def on_app_command_error(self, interaction: discord.Interaction, exception: Exception): """Event triggered when an application command errors""" # If commands have their own error handler, let it handle the error instead if hasattr(interaction.command, "on_error"):