From befa4dcaf85a09e00cdac4810ba9bacec66cb4e1 Mon Sep 17 00:00:00 2001 From: Leander Furumo Date: Fri, 23 Oct 2026 21:38:10 +0200 Subject: [PATCH] only accept the leave confirmation on the confirmation message Co-Authored-By: Claude Opus 5.5 --- bot/src/cogs/dev_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/src/cogs/dev_tools.py b/bot/src/cogs/dev_tools.py index a51d61a..3acc875 100644 --- a/bot/src/cogs/dev_tools.py +++ b/bot/src/cogs/dev_tools.py @@ -79,7 +79,7 @@ class DevTools(commands.Cog): # Check confirmation def comfirm(reaction: discord.Reaction, user: discord.Member): - return user == ctx.author and str(reaction.emoji) == "✅" + return reaction.message.id == confirmation_msg.id and user == ctx.author and str(reaction.emoji) == "✅" try: await self.bot.wait_for("reaction_add", timeout=15.0, check=comfirm)