only accept the leave confirmation on the confirmation message

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
leanderandClaude Opus 5.5 committed 2026-10-23 21:38:10 +02:00
1 parent 111c84ad9f
commit befa4dcaf8
1 file changed
+1 -1
+1 -1
View File
@@ -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)