forked from Galactic/galactic-bot
bugfix
This commit is contained in:
parent
6c5ab6dfd9
commit
15b62e56cc
@ -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;
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user