diff options
Diffstat (limited to 'api/src/util/handlers/Message.ts')
-rw-r--r-- | api/src/util/handlers/Message.ts | 5 |
1 files changed, 3 insertions, 2 deletions
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<Message> { 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; } |