K
Kord4w ago
tmpod

Filtering members by role

Heyo again, I'm in need of building a list of members that have a specific set of roles, and I was wondering if there is a better way to do this than filtering on the Guild#members flow. Discord has that members-search endpoint, but I assume it is user-only, correct? Since this is for a guild-specific bot, I guess I could just enable the intent and cache all guild members at the start...
1 Reply
Up
Up4w ago
afaik it has internal caching so dw, members will only be retrieved if they arent in cache yet

Did you find this page helpful?