From 15b62e56ccd82029a78324ca7ebb84295f99d009 Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Sat, 9 Jul 2022 13:39:04 +0300 Subject: [PATCH] bugfix --- src/structure/client/wrappers/GuildWrapper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }