Call inner item callback and interaction_check by default

This commit is contained in:
Rapptz 2024-01-24 13:25:48 -05:00
parent cb3ea9b889
commit 3258507b4a

View File

@ -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)