diff --git a/src/api/routes/webhooks/#webhook_id/#token/index.ts b/src/api/routes/webhooks/#webhook_id/#token/index.ts
index 9c31bf95..4d219cc1 100644
--- a/src/api/routes/webhooks/#webhook_id/#token/index.ts
+++ b/src/api/routes/webhooks/#webhook_id/#token/index.ts
@@ -126,9 +126,9 @@ router.delete(
channel_id,
data: {
channel_id,
- guild_id: webhook.guild_id,
+ guild_id: webhook.guild_id!, // TODO: is this even the right fix?
},
- } as WebhooksUpdateEvent);
+ } satisfies WebhooksUpdateEvent);
res.sendStatus(204);
},
@@ -177,9 +177,9 @@ router.patch(
channel_id,
data: {
channel_id,
- guild_id: webhook.guild_id,
+ guild_id: webhook.guild_id!, //TODO: is this even the right fix?
},
- } as WebhooksUpdateEvent),
+ } satisfies WebhooksUpdateEvent),
]);
res.status(204);
},
diff --git a/src/api/routes/webhooks/#webhook_id/index.ts b/src/api/routes/webhooks/#webhook_id/index.ts
index 2282a460..7398db42 100644
--- a/src/api/routes/webhooks/#webhook_id/index.ts
+++ b/src/api/routes/webhooks/#webhook_id/index.ts
@@ -69,9 +69,9 @@ router.delete(
channel_id,
data: {
channel_id,
- guild_id: webhook.guild_id,
+ guild_id: webhook.guild_id!, // TODO: is this even the right fix?
},
- } as WebhooksUpdateEvent);
+ } satisfies WebhooksUpdateEvent);
res.sendStatus(204);
},
@@ -134,9 +134,9 @@ router.patch(
channel_id,
data: {
channel_id,
- guild_id: webhook.guild_id,
+ guild_id: webhook.guild_id!, //TODO: is this even the right fix?
},
- } as WebhooksUpdateEvent),
+ } satisfies WebhooksUpdateEvent),
]);
res.json(webhook);
|