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/Guild.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/models/Guild.ts') diff --git a/src/models/Guild.ts b/src/models/Guild.ts index c9a55301..11629fb5 100644 --- a/src/models/Guild.ts +++ b/src/models/Guild.ts @@ -1,6 +1,10 @@ import { Schema, model, Types, Document } from "mongoose"; -export interface Guild extends Document { +export interface GuildDocument extends Document, Guild { + id: bigint; +} + +export interface Guild { id: bigint; afk_channel_id?: bigint; afk_timeout?: number; @@ -82,4 +86,4 @@ export const GuildSchema = new Schema({ widget_enabled: Boolean, }); -export const GuildModel = model("Guild", GuildSchema, "guilds"); +export const GuildModel = model("Guild", GuildSchema, "guilds"); -- cgit 1.5.1