How to get Roles in channel and get Users ID in roles #1239
Unanswered
GalsCressendo
asked this question in
Q&A
Replies: 1 comment
-
You could get all users and check if they have that role (use state for this, make sure to have guild intents) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to create a bot to dm user, but only user with certain roles. I have read https://pkg.go.dev/github.com/bwmarrin/discordgo#section-readme , but haven't how to get the roles from the server and then get all the users ID from that role.
Thankyou in advance
Beta Was this translation helpful? Give feedback.
All reactions