fix: everyone role members (#9685)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
Synbulat Biishev
2023-07-06 17:09:31 +03:00
committed by GitHub
parent 78381a56cf
commit 0803eb562b

View File

@@ -167,7 +167,9 @@ class Role extends Base {
* @readonly
*/
get members() {
return this.guild.members.cache.filter(m => m._roles.includes(this.id));
return this.id === this.guild.id
? this.guild.members.cache.clone()
: this.guild.members.cache.filter(m => m._roles.includes(this.id));
}
/**