Fix replies to webhook message

This commit is contained in:
git-bruh 2020-12-08 16:04:04 +05:30
parent ca5e0b2d28
commit 6d34130f7f
No known key found for this signature in database
GPG key ID: E1475C50075ADCE6

View file

@ -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}")