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

await message.add_reaction(delete_emoji) await message.add_reaction(delete_emoji)


def check(r, u): 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: try:
await bot.wait_for("reaction_add", timeout=timeout, check=check) await bot.wait_for("reaction_add", timeout=timeout, check=check)

Loading…
Cancel
Save