bugfix to missing permissions

This commit is contained in:
Erik 2023-12-08 16:21:46 +02:00
parent b635ec4c7e
commit b165568dd0

View File

@ -304,7 +304,7 @@ class GuildWrapper
if (this.#permissions) if (this.#permissions)
return 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) if (perms)
this.#permissions = perms; this.#permissions = perms;
else else