diff --git a/bot/extensions/polls/commands.py b/bot/extensions/polls/commands.py index f2738d58..8da633ae 100644 --- a/bot/extensions/polls/commands.py +++ b/bot/extensions/polls/commands.py @@ -24,6 +24,15 @@ def reactions(self): 9: "9️⃣", 10: "🔟", } + + def poll_check(self, message: discord.Message): + try: + embed = message.embeds[0] + except Exception: + return False + if str(embed.footer.text).count("Poll by") == 1: + return message.author == self.bot.user + return False @app_commands.command() @app_commands.checks.cooldown(1, 10)