Migrate WebhooksUpdateEvent to satisfies, part of #1577

This commit is contained in:
Rory&
2026-03-08 17:21:06 +01:00
parent de64db65cf
commit 52efc753db
2 changed files with 8 additions and 8 deletions

View File

@@ -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);
},

View File

@@ -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);