mirror of
https://github.com/spacebarchat/server.git
synced 2026-03-29 09:50:20 +00:00
Migrate WebhooksUpdateEvent to satisfies, part of #1577
This commit is contained in:
@@ -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);
|
||||
},
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user