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
@@ -1802,7 +1802,7 @@ class Group:
|
||||
yield from command.walk_commands()
|
||||
|
||||
@mark_overrideable
|
||||
async def on_error(self, interaction: Interaction, error: AppCommandError, /) -> None:
|
||||
async def on_error(self, interaction: Interaction[ClientT], error: AppCommandError, /) -> None:
|
||||
"""|coro|
|
||||
|
||||
A callback that is called when a child's command raises an :exc:`AppCommandError`.
|
||||
@@ -1850,7 +1850,7 @@ class Group:
|
||||
self.on_error = coro # type: ignore
|
||||
return coro
|
||||
|
||||
async def interaction_check(self, interaction: Interaction, /) -> bool:
|
||||
async def interaction_check(self, interaction: Interaction[ClientT], /) -> bool:
|
||||
"""|coro|
|
||||
|
||||
A callback that is called when an interaction happens within the group
|
||||
|
||||
Reference in new issue
Block a user