This commit is contained in:
Erik 2022-07-09 13:39:04 +03:00
parent 6c5ab6dfd9
commit 15b62e56cc
Signed by untrusted user: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB

View File

@ -120,7 +120,7 @@ class GuildWrapper {
async checkInvite(code) { async checkInvite(code) {
// Is maintained by the utility hook // 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; return this.invites?.has(code) || false;
} }