From ea8f629e30d25742390cf796d6ea45d640e819a0 Mon Sep 17 00:00:00 2001 From: Luna Date: Sat, 10 Jul 2021 18:58:11 -0300 Subject: [PATCH] webhooks: add type field close #66 --- litecord/blueprints/webhooks.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/litecord/blueprints/webhooks.py b/litecord/blueprints/webhooks.py index 26675be..fb5e7b7 100644 --- a/litecord/blueprints/webhooks.py +++ b/litecord/blueprints/webhooks.py @@ -78,6 +78,8 @@ async def get_webhook( drow = dict(row) + drow["type"] = 1 + drow["user"] = await app.storage.get_user(row["creator_id"]) drow.pop("creator_id")