Mitzey
Mitzey
DIAdiscord.js - Imagine an app
Created by Mitzey on 1/12/2024 in #djs-questions
Any better ways to get ALL guild members that have a specific server role?
Small question for those that know, is there any better way to get all guild members that have a specific guild role that doesn't require me to fetch and cache every single guild member in the server before grabbing them from the djs cache? I ask cause the bot I'm writing is stuck pulling over 10,000+ guild members just trying to figure out what members have specific roles, and it seems very wasteful / abusive if I have to download all this data at once from the API when all I'm trying to get is like, 25 members from the 10,000+ pool.
9 replies