diff --git a/src/structures/MessageMentions.js b/src/structures/MessageMentions.js index bd187c760..1b49c5ea8 100644 --- a/src/structures/MessageMentions.js +++ b/src/structures/MessageMentions.js @@ -126,7 +126,7 @@ class MessageMentions { has(data, strict = true) { if (strict && this.everyone) return true; if (strict && data instanceof GuildMember) { - for (const role of this.roles) if (data.roles.has(role.id)) return true; + for (const role of this.roles.values()) if (data.roles.has(role.id)) return true; } const id = data.id || data; return this.users.has(id) || this.channels.has(id) || this.roles.has(id);