#Members property of Role object only has one member in it.

1 messages · Page 1 of 1 (latest)

worldly tigerBOT
#

Hey! Once your issue is solved, press the button below to close this thread!

tidal heron
#

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

dull coyote
#

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