From 469f5215acd3c392664042626ad6312e8168131f Mon Sep 17 00:00:00 2001 From: Dominik Koch Date: Sat, 26 Oct 2024 13:48:39 +0200 Subject: [PATCH] fix: update mongodb model --- src/commands/game/topic.ts | 1 - src/util/Models/guildModel.ts | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/commands/game/topic.ts b/src/commands/game/topic.ts index 14ed41e5..0f18a928 100644 --- a/src/commands/game/topic.ts +++ b/src/commands/game/topic.ts @@ -92,7 +92,6 @@ const command: ChatInputCommand = { embeds: [ratherEmbed], components: [mainRow], }; - interaction.reply(classicData).catch((err: Error) => { captureException(err); }); diff --git a/src/util/Models/guildModel.ts b/src/util/Models/guildModel.ts index 2c1495dc..5010173f 100644 --- a/src/util/Models/guildModel.ts +++ b/src/util/Models/guildModel.ts @@ -38,6 +38,7 @@ export interface IGuildModel { classicMode: boolean; autoPin: boolean; premium: number; + pending: boolean; premiumExpiration: Date | null; premiumUser: string | null; webhookName: string; @@ -160,6 +161,10 @@ const guildProfileSchema = new Schema( type: Number, default: 0, }, + pending: { + type: Boolean, + default: false, + }, premiumExpiration: { type: Date, },