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 --- dist/models/Event.d.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'dist/models/Event.d.ts') diff --git a/dist/models/Event.d.ts b/dist/models/Event.d.ts index 2e035b58..a3db8251 100644 --- a/dist/models/Event.d.ts +++ b/dist/models/Event.d.ts @@ -12,7 +12,7 @@ import { VoiceState } from "./VoiceState"; import { ApplicationCommand } from "./Application"; import { Interaction } from "./Interaction"; import { Schema, Document } from "mongoose"; -export interface Event extends Document { +export interface Event { guild_id?: bigint; user_id?: bigint; channel_id?: bigint; @@ -20,8 +20,10 @@ export interface Event extends Document { event: EVENT; data?: any; } +export interface EventDocument extends Event, Document { +} export declare const EventSchema: Schema, import("mongoose").Model>, undefined>; -export declare const EventModel: import("mongoose").Model; +export declare const EventModel: import("mongoose").Model; export interface InvalidatedEvent extends Event { event: "INVALIDATED"; } -- cgit 1.5.1