From b165568dd069307c047d938e4f54a3d8a8dd5110 Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Fri, 8 Dec 2023 16:21:46 +0200 Subject: [PATCH] bugfix to missing permissions --- src/client/components/wrappers/GuildWrapper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/components/wrappers/GuildWrapper.ts b/src/client/components/wrappers/GuildWrapper.ts index 4fb1dc2..10afe47 100644 --- a/src/client/components/wrappers/GuildWrapper.ts +++ b/src/client/components/wrappers/GuildWrapper.ts @@ -304,7 +304,7 @@ class GuildWrapper if (this.#permissions) return this.#permissions; - const perms = await this.#client.mongodb.permissions.findOne({ guildId: this.id }, { projection: { guildId: -1 } }); + const perms = await this.#client.mongodb.permissions.findOne({ guildId: this.id }, { projection: { guildId: 0 } }); if (perms) this.#permissions = perms; else