diff options
Diffstat (limited to 'util/src/interfaces')
-rw-r--r-- | util/src/interfaces/Event.ts | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/util/src/interfaces/Event.ts b/util/src/interfaces/Event.ts index 1897706e..bab6f4dc 100644 --- a/util/src/interfaces/Event.ts +++ b/util/src/interfaces/Event.ts @@ -259,22 +259,14 @@ export interface InviteDeleteEvent extends Event { }; } -export type MessagePayload = Omit<Message, "author_id"> & { - channel_id: string; - guild_id?: string; - author: PublicUser; - member: PublicMember; - mentions: (PublicUser & { member: PublicMember })[]; -}; - export interface MessageCreateEvent extends Event { event: "MESSAGE_CREATE"; - data: MessagePayload; + data: Message; } export interface MessageUpdateEvent extends Event { event: "MESSAGE_UPDATE"; - data: MessagePayload; + data: Message; } export interface MessageDeleteEvent extends Event { |