diff --git a/src/structures/GuildMember.js b/src/structures/GuildMember.js index de4705ab4..05ca569e6 100644 --- a/src/structures/GuildMember.js +++ b/src/structures/GuildMember.js @@ -269,7 +269,8 @@ class GuildMember extends Base { */ hasPermission(permission, { checkAdmin = true, checkOwner = true } = {}) { if (checkOwner && this.user.id === this.guild.ownerID) return true; - return this.roles.cache.some(r => r.permissions.has(permission, checkAdmin)); + const permissions = new Permissions(this.roles.cache.map(role => role.permissions)); + return permissions.has(permission, checkAdmin); } /**