From f22b6d3f0b530058b538c33670a5600e5d3b4abd Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Sat, 27 Mar 2021 21:25:49 +0100 Subject: :art: update Message timestamp to use Date --- src/models/Message.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/models') diff --git a/src/models/Message.ts b/src/models/Message.ts index 88291f9f..81f617d3 100644 --- a/src/models/Message.ts +++ b/src/models/Message.ts @@ -12,8 +12,8 @@ export interface Message { webhook_id?: bigint; application_id: bigint; content: string; - timestamp: number; - edited_timestamp: number; + timestamp: Date; + edited_timestamp: Date; tts: boolean; mention_everyone: boolean; mention_user_ids: bigint[]; @@ -77,7 +77,7 @@ export interface Embed { type?: string; // type of embed (always "rich" for webhook embeds) description?: string; // description of embed url?: string; // url of embed - timestamp?: number; // timestamp of embed content + timestamp?: Date; // timestamp of embed content color?: number; // color code of the embed footer?: { text: string; @@ -161,7 +161,7 @@ export const Embed = { type: String, // type of embed (always "rich" for webhook embeds) description: String, // description of embed url: String, // url of embed - timestamp: Number, // timestamp of embed content + timestamp: Date, // timestamp of embed content color: Number, // color code of the embed footer: { text: String, @@ -198,8 +198,8 @@ export const MessageSchema = new Schema({ guild_id: Types.Long, application_id: Types.Long, content: String, - timestamp: Number, - edited_timestamp: Number, + timestamp: Date, + edited_timestamp: Date, tts: Boolean, mention_everyone: Boolean, mention_user_ids: [Types.Long], -- cgit 1.5.1