summary refs log tree commit diff
path: root/api/src/util
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-08-21 17:35:04 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-08-21 17:35:04 +1000
commit7ce8543510f586d5d1bde0103591267d9a87549e (patch)
tree0dc7f58b9d7b625f259bedb4dba5f67710fb7bc8 /api/src/util
parentadd more default rights (diff)
downloadserver-7ce8543510f586d5d1bde0103591267d9a87549e.tar.xz
fosscord-server/pulls/858
Diffstat (limited to 'api/src/util')
-rw-r--r--api/src/util/handlers/Message.ts5
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;
 }