From 775296d0048d290b959f07cde10a3ffc1430bad9 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Sun, 14 Feb 2021 20:41:40 +0100 Subject: :bug: fix Event type --- src/models/Event.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/models/Event.ts') diff --git a/src/models/Event.ts b/src/models/Event.ts index 4e2736c0..515c6119 100644 --- a/src/models/Event.ts +++ b/src/models/Event.ts @@ -12,7 +12,7 @@ import { ApplicationCommand } from "./Application"; import { Interaction } from "./Interaction"; import { Schema, model, Types, Document } from "mongoose"; -export interface Event extends Document { +export interface Event { guild_id?: bigint; user_id?: bigint; channel_id?: bigint; @@ -21,6 +21,8 @@ export interface Event extends Document { data?: any; } +export interface EventDocument extends Event, Document {} + export const EventSchema = new Schema({ guild_id: Types.Long, user_id: Types.Long, @@ -30,7 +32,7 @@ export const EventSchema = new Schema({ data: Object, }); -export const EventModel = model("Event", EventSchema, "events"); +export const EventModel = model("Event", EventSchema, "events"); // ! Custom Events that shouldn't get sent to the client but processed by the server -- cgit 1.5.1