summary refs log tree commit diff
path: root/src/routes/channels/#channel_id/index.ts
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/routes/channels/#channel_id/index.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/routes/channels/#channel_id/index.ts b/src/routes/channels/#channel_id/index.ts

index 434f61a5..81e5054e 100644 --- a/src/routes/channels/#channel_id/index.ts +++ b/src/routes/channels/#channel_id/index.ts
@@ -30,7 +30,7 @@ router.delete("/", async (req: Request, res: Response) => { // TODO: Dm channel "close" not delete const data = toObject(channel); - await emitEvent({ event: "CHANNEL_DELETE", data, guild_id: channel?.guild_id, channel_id } as ChannelDeleteEvent); + await emitEvent({ event: "CHANNEL_DELETE", data, channel_id } as ChannelDeleteEvent); await ChannelModel.deleteOne({ id: channel_id }); @@ -51,7 +51,6 @@ router.patch("/", check(ChannelModifySchema), async (req: Request, res: Response await emitEvent({ event: "CHANNEL_UPDATE", data, - guild_id: channel.guild_id, channel_id } as ChannelUpdateEvent);