mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
@@ -167,7 +167,7 @@ class Role extends Base {
|
||||
* @readonly
|
||||
*/
|
||||
get members() {
|
||||
return this.guild.members.cache.filter(m => m.roles.cache.has(this.id));
|
||||
return this.guild.members.cache.filter(m => m._roles.includes(this.id));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user