Преглед на файлове

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

tags/v1.7.0
Roxie Gibson преди 6 години
родител
ревизия
6e3841774e
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. +1
    -1
      roxbot/utils.py

+ 1
- 1
roxbot/utils.py Целия файл

@@ -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…
Отказ
Запис