only accept the leave confirmation on the confirmation message
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
111c84ad9f
commit
befa4dcaf8
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user