mirror of
https://github.com/stijndcl/didier.git
synced 2026-04-07 23:55:46 +02:00
Typing
This commit is contained in:
parent
d374f1e8ab
commit
8707f467d5
1 changed files with 1 additions and 2 deletions
|
|
@ -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"):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue