Fix replies to webhook message
This commit is contained in:
parent
ca5e0b2d28
commit
6d34130f7f
1 changed files with 1 additions and 0 deletions
1
main.py
1
main.py
|
@ -131,6 +131,7 @@ class MatrixClient(nio.AsyncClient):
|
|||
hook = await hook.send(username=author[:80], avatar_url=avatar,
|
||||
content=message, wait=True)
|
||||
message_store[event_id] = hook
|
||||
message_store[hook.id] = event_id
|
||||
except discord.errors.HTTPException as e:
|
||||
matrix_logger.warning(f"Failed to send message {event_id}: {e}")
|
||||
|
||||
|
|
Loading…
Reference in a new issue