🐛 fix message model

This commit is contained in:
Flam3rboy 2021-04-14 15:00:39 +02:00
parent dce4027928
commit 532124e732

View File

@ -10,11 +10,11 @@ export interface Message {
guild_id?: bigint; guild_id?: bigint;
author_id?: bigint; author_id?: bigint;
webhook_id?: bigint; webhook_id?: bigint;
application_id: bigint; application_id?: bigint;
content: string; content?: string;
timestamp: number; timestamp: Date;
edited_timestamp: number; edited_timestamp?: Date;
tts: boolean; tts?: boolean;
mention_everyone: boolean; mention_everyone: boolean;
mention_user_ids: bigint[]; mention_user_ids: bigint[];
mention_role_ids: bigint[]; mention_role_ids: bigint[];
@ -77,7 +77,7 @@ export interface Embed {
type?: string; // type of embed (always "rich" for webhook embeds) type?: string; // type of embed (always "rich" for webhook embeds)
description?: string; // description of embed description?: string; // description of embed
url?: string; // url 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 color?: number; // color code of the embed
footer?: { footer?: {
text: string; text: string;
@ -161,7 +161,7 @@ export const Embed = {
type: String, // type of embed (always "rich" for webhook embeds) type: String, // type of embed (always "rich" for webhook embeds)
description: String, // description of embed description: String, // description of embed
url: String, // url 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 color: Number, // color code of the embed
footer: { footer: {
text: String, text: String,
@ -198,8 +198,8 @@ export const MessageSchema = new Schema({
guild_id: Types.Long, guild_id: Types.Long,
application_id: Types.Long, application_id: Types.Long,
content: String, content: String,
timestamp: Number, timestamp: Date,
edited_timestamp: Number, edited_timestamp: Date,
tts: Boolean, tts: Boolean,
mention_everyone: Boolean, mention_everyone: Boolean,
mention_user_ids: [Types.Long], mention_user_ids: [Types.Long],