Members in a role? #2370
Answered
by
kangalio
thetayloredman
asked this question in
Q&A
Members in a role?
#2370
-
Does Serenity expose a method of obtaining all of the members with a given role, or do I have to iterate over all members and see if they have a certain role? |
Beta Was this translation helpful? Give feedback.
Answered by
kangalio
Apr 17, 2023
Replies: 1 comment 3 replies
-
I think you need to do it manually |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Discord has no built-in API endpoint to get members of a role, so a manual loop is the only way. Other libs do it the same way, e.g. Discord.js, Discord.py