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