From ddaa457acee5121cc99f358e3f568ba76b38a6e4 Mon Sep 17 00:00:00 2001 From: Jan Date: Sat, 13 Nov 2021 12:22:58 +0100 Subject: [PATCH] fix: added missing `channel` property on message events (#25) --- src/websocket/notifications.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/websocket/notifications.ts b/src/websocket/notifications.ts index 8849aa99..29b59366 100644 --- a/src/websocket/notifications.ts +++ b/src/websocket/notifications.ts @@ -47,8 +47,13 @@ export type ClientboundNotification = | { type: "Authenticated" } | ReadyPacket | ({ type: "Message" } & Message) - | { type: "MessageUpdate"; id: string; data: Partial } - | { type: "MessageDelete"; id: string } + | { + type: "MessageUpdate"; + id: string; + data: Partial; + channel: string; + } + | { type: "MessageDelete"; id: string; channel: string } | ({ type: "ChannelCreate" } & Channel) | { type: "ChannelUpdate";