summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-04-14 15:00:39 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-04-14 15:00:39 +0200
commit532124e732d97f1f1b91ea74aa9d9c7cb2b18e2f (patch)
tree236afb6ee96121945b87e905495ccc40a5c4e44f /src
parent:sparkles: changed number to date type (diff)
downloadserver-532124e732d97f1f1b91ea74aa9d9c7cb2b18e2f.tar.xz
:bug: fix message model
Diffstat (limited to 'src')
-rw-r--r--src/models/Message.ts18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/models/Message.ts b/src/models/Message.ts

index 88291f9f..7d9ff184 100644 --- a/src/models/Message.ts +++ b/src/models/Message.ts
@@ -10,11 +10,11 @@ export interface Message { guild_id?: bigint; author_id?: bigint; webhook_id?: bigint; - application_id: bigint; - content: string; - timestamp: number; - edited_timestamp: number; - tts: boolean; + application_id?: bigint; + content?: string; + timestamp: Date; + edited_timestamp?: Date; + tts?: boolean; mention_everyone: boolean; mention_user_ids: bigint[]; mention_role_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],