Add generics to Interaction params

This commit is contained in:
Steve C
2026-02-22 15:59:46 -05:00
committed by GitHub
parent e45c8e60e1
commit dae46f7d0f
3 changed files with 14 additions and 11 deletions

View File

@@ -646,7 +646,9 @@ class Cog(metaclass=CogMeta):
pass
@_cog_special_method
async def cog_app_command_error(self, interaction: discord.Interaction, error: app_commands.AppCommandError) -> None:
async def cog_app_command_error(
self, interaction: discord.Interaction[ClientT], error: app_commands.AppCommandError
) -> None:
"""|coro|
A special method that is called whenever an error within