Member has a specific role #10177
-
Hello how can i check that a member has a specific role? |
Beta Was this translation helpful? Give feedback.
Answered by
Masihdeveloper
Mar 16, 2024
Replies: 1 comment
-
Hello, just check the role id that you want from the all of this member roles in cache. <GuildMember>.roles.cache.has("roleId") // boolean |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Nimamzi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, just check the role id that you want from the all of this member roles in cache.