mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-06 20:07:17 +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.
|
||||
"""
|
||||
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