From 60c8f3e6b2e7fc3b802d51222b4b0f5ae61ddd8c Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Sun, 21 Aug 2022 17:35:04 +1000 Subject: fosscord-server/pulls/858 --- api/src/util/handlers/Message.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'api/src/util') diff --git a/api/src/util/handlers/Message.ts b/api/src/util/handlers/Message.ts index a6754bd1..8980b4cc 100644 --- a/api/src/util/handlers/Message.ts +++ b/api/src/util/handlers/Message.ts @@ -55,7 +55,8 @@ export async function handleMessage(opts: MessageOptions): Promise { attachments: opts.attachments || [], embeds: opts.embeds || [], reactions: /*opts.reactions ||*/[], - type: opts.type ?? 0 + type: opts.type ?? 0, + edited_timestamp: null }); if (message.content && message.content.length > Config.get().limits.message.maxCharacters) { @@ -278,6 +279,6 @@ interface MessageOptions extends MessageCreateSchema { embeds?: Embed[]; channel_id?: string; attachments?: Attachment[]; - edited_timestamp?: Date; + edited_timestamp: Date | null; timestamp?: Date; } -- cgit 1.5.1