bugfix to missing permissions
This commit is contained in:
parent
b635ec4c7e
commit
b165568dd0
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user