edited premium
diff --git a/src/utils/database.ts b/src/utils/database.ts
index 3d4ca78..10b0ddb 100644
--- a/src/utils/database.ts
+++ b/src/utils/database.ts
@@ -217,9 +217,13 @@
return entry.appliesTo.length;
}
- setPremium(user: string, guild: string) {
+ addPremium(user: string, guild: string) {
return this.premium.updateOne({ user: user }, { $addToSet: { appliesTo: guild } }, { upsert: true });
}
+
+ removePremium(user: string, guild: string) {
+ return this.premium.updateOne({ user: user }, { $pull: { appliesTo: guild } });
+ }
}
export interface GuildConfig {