diff --git a/discordpolls/views.py b/discordpolls/views.py index 40af834..b8cb6ef 100644 --- a/discordpolls/views.py +++ b/discordpolls/views.py @@ -40,6 +40,9 @@ def __init__(self, ctx: commands.Context, *, timeout: float = 160.0) -> None: self.ctx: commands.Context = ctx self.tree: RedTree = ctx.bot.tree + async def interaction_check(self, interaction: discord.Interaction[Red], /) -> bool: + return await self._check(interaction) + async def _check(self, interaction: discord.Interaction[Red]) -> bool: if self.ctx.author.id != interaction.user.id: await self.tree._send_from_interaction(