From 211781278eb3a1c2ed3d06fe704fb5e83a6f9184 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Fri, 21 May 2021 21:40:03 +0200 Subject: [PATCH] :sparkles: MessageAckEvent --- src/models/Event.ts | 12 ++++++++++++ src/models/Member.ts | 3 +++ 2 files changed, 15 insertions(+) diff --git a/src/models/Event.ts b/src/models/Event.ts index 46161350..d4c00812 100644 --- a/src/models/Event.ts +++ b/src/models/Event.ts @@ -420,6 +420,17 @@ export interface InteractionCreateEvent extends Event { data: Interaction; } +export interface MessageAckEvent extends Event { + event: "MESSAGE_ACK"; + data: { + channel_id: string; + message_id: string; + version?: number; + manual?: boolean; + mention_count?: number; + }; +} + // located in collection events export enum EVENTEnum { @@ -508,6 +519,7 @@ export type EVENT = | "APPLICATION_COMMAND_CREATE" | "APPLICATION_COMMAND_UPDATE" | "APPLICATION_COMMAND_DELETE" + | "MESSAGE_ACK" | CUSTOMEVENTS; export type CUSTOMEVENTS = "INVALIDATED"; diff --git a/src/models/Member.ts b/src/models/Member.ts index 52151235..9f7ca2e1 100644 --- a/src/models/Member.ts +++ b/src/models/Member.ts @@ -25,6 +25,8 @@ export interface Member { mute: boolean; pending: boolean; settings: UserGuildSettings; + read_state: Record; + // virtual user?: User; } @@ -68,6 +70,7 @@ export const MemberSchema = new Schema({ deaf: Boolean, mute: Boolean, pending: Boolean, + read_state: Object, settings: { channel_overrides: [ {