mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 12:18:59 +00:00
Call inner item callback and interaction_check by default
This commit is contained in:
parent
cb3ea9b889
commit
3258507b4a
@ -208,3 +208,9 @@ class DynamicItem(Generic[BaseT], Item['View']):
|
|||||||
from the ``match`` object.
|
from the ``match`` object.
|
||||||
"""
|
"""
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
|
async def callback(self, interaction: Interaction[ClientT]) -> Any:
|
||||||
|
return await self.item.callback(interaction)
|
||||||
|
|
||||||
|
async def interaction_check(self, interaction: Interaction[ClientT], /) -> bool:
|
||||||
|
return await self.item.interaction_check(interaction)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user