Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

discord js user has role

if(message.member.roles.find(r => r.name === "Admin")){
    // The rest of your code.
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #discord #js #user #role
ADD COMMENT
Topic
Name
5+7 =