Browse Source

fixed the check error again because it was weird but the id check works.

tags/v1.7.0
Roxie Gibson 6 years ago
parent
commit
6e3841774e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      roxbot/utils.py

+ 1
- 1
roxbot/utils.py View File

@@ -7,7 +7,7 @@ async def delete_option(bot, ctx, message, delete_emoji, timeout=20):
await message.add_reaction(delete_emoji)

def check(r, u):
return str(r) == str(delete_emoji) and u == ctx.author and r.message == message
return str(r) == str(delete_emoji) and u == ctx.author and r.message.id == message.id

try:
await bot.wait_for("reaction_add", timeout=timeout, check=check)

Loading…
Cancel
Save