Sfoglia il codice sorgente

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

tags/v1.7.0
Roxie Gibson 6 anni fa
parent
commit
6e3841774e
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      roxbot/utils.py

+ 1
- 1
roxbot/utils.py Vedi 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…
Annulla
Salva