diff --git a/src/structure/client/wrappers/GuildWrapper.js b/src/structure/client/wrappers/GuildWrapper.js index 4f89081..304b096 100644 --- a/src/structure/client/wrappers/GuildWrapper.js +++ b/src/structure/client/wrappers/GuildWrapper.js @@ -120,7 +120,7 @@ class GuildWrapper { async checkInvite(code) { // Is maintained by the utility hook - if (!this.invites && this.me.hasPermission('MANAGE_GUILD')) this.invites = await this.fetchInvites(); + if (!this.invites && this.me.permissions.has('MANAGE_GUILD')) this.invites = await this.fetchInvites(); return this.invites?.has(code) || false; }