#Members property of Role object only has one member in it.
1 messages · Page 1 of 1 (latest)
if you want to look for all members of a role, you need privileged intent GUILD_MEMBERS
as the role.members is looking through its guild's member list, which without the intent i assume would only list members that are cached by the client
you can set your intents in the bot code to Intents.DEFAULT | Intents.GUILD_MEMBERS, as the former includes all intents except three privileged ones
I think that this role.members property might contain only the cached users :/
The best solution would be to fetch all users of a guild and check if they have the role