Update __init__.py

Setting `do_query_message` to accept full payload
This commit is contained in:
Grey Himmel 2019-04-22 17:16:10 -04:00 committed by GitHub
parent e85776fae6
commit 3d913018d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -112,7 +112,7 @@ def run(config: Config):
await proxy.try_delete_by_reaction(conn, client, payload.message_id, payload.user_id, logger)
if payload.emoji.name in "\u2753\u2754": # Question mark
async with pool.acquire() as conn:
await proxy.do_query_message(conn, client, payload.user_id, payload.message_id)
await proxy.do_query_message(conn, client, payload)
@client.event
async def on_error(event_name, *args, **kwargs):