mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-07 17:39:03 +00:00
Add generics to Interaction params
This commit is contained in:
1 parent
e45c8e60e1
commit
dae46f7d0f
3 files changed
+14
-11
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user