diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-08-29 00:03:58 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-08-29 00:03:58 +0200 |
commit | 766dcc24aa1f1de60cc15af699f933d521aa85b6 (patch) | |
tree | fa780a152b66f254039bfc26ca7b5cc9e987d3a0 /util/src/interfaces/Event.ts | |
parent | :sparkles: typeorm api rewrite done (diff) | |
download | server-766dcc24aa1f1de60cc15af699f933d521aa85b6.tar.xz |
:sparkles: update util
Diffstat (limited to 'util/src/interfaces/Event.ts')
-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 { |