showing results for - "checking if a user has a role in discord js"
Fabio
15 Jan 2019
1//other code
2else if (command === "addquote" && arg) {
3    let adminRole = message.guild.roles.find("name", "Admin");
4    let modRole = message.guild.roles.find("name", "Mod");
5
6    if(message.member.roles.has(adminRole) || message.member.roles.has(modRole)){
7        const hasArr = arr.some((el) => {
8            return el.toLowerCase().replace(/\s/g, '') === arg.toLowerCase().replace(/\s/g, '');
9        });
10
11        if(hasArr){
12            message.channel.send(arg.replace(/\s+/g,' ').trim() + " is already a Quote");
13        } else {
14            fs.appendFileSync('./Quotes.txt', '\r\n' + arg);
15            message.channel.send("Quote added: " + arg);
16            arr.push(arg);            
17        }   
18    }
19}
queries leading to this page
check if author has role discord jshow to get a user has the specific role ind discord jsif member role discord jscheck if user has role by name discordjshow to see if user has role discord js with idhow to check for role name in discord jsdiscord js check user roleshow to check if user has role discord js jsoncheck if role exists discord jsdiscord js check if member has a rolediscord js 2c check if a user has a rolecheck roles of user with id discord jsdiscord js check if mentioned member has rolediscord js if has rolecheck if user have a role of a list of roles discord jshow to check if a user has a role out of many roles discord jscheck if message has role mention discord jsdiscord js check if someone has role in other discord servercheck if a user has a praticular role discord jscheck if user has role discord js v12discord how to check if user has rolediscord js check if member ha rolediscord js check user has rolediscord js check if role is adminfind member role in discord jscheck if user has role incl discord js v12check if a user has a role in a specific guild discord js v12discord memeber has rolehow to check if a user has certain role discord jsdiscord js check if user has role iddiscord js user has rolediscord js 12 check if member has rolehow to see if a player has a role discord jsdiscord py if user has rolehow to check if a user has specific roles in discordjs v13check if author hasd that role then in discord jsdiscord js check if user has role noejsdiscord js check if user has a rolehow to check if member has right roles discord jscheck if user has role discord js v13message member rolesdiscord js if a user has a rolehow to check if author has a role djcheck if user has a role discord jsdiscord js check every user for rolediscord js check if someone has a rolehow to check is a user has a specific role discord jsdiscord js check if member has rolediscord js how to check if member has roleif tagged person has role discord jsdiscord js v12 check if member has rolediscord js verify rolediscord js how to check if author has a specific rolediscord js check if guild has rolediscord js has rolediscord js if use has roleif have role discord jsdiscord js check if user has no rolehow to check if someone has a role discord jshow to tell if a user has a role discord jscheck if message author has rolecheck if user has role discordjsdiscord js know if user has rolediscord js user has role idhow to check if a user has a role discord jsdiscord js get user roleshow to check mentioned roles discord jshow to check how many roles a user has in diiscord jsdiscord js check rolessee if member has role discordjsdiscord js check if guildmember has role how to see if a person has a certain role discord js 1 12how to test if a member has a role discord jscheck if user has role discord jsif user has a role discord jshow to see if a user has a role or not discord jshow to check if a person has a role in discord jsdiscord js if message member has role by iddiscord js if user has role do else ifcheck if person has a specific role discord jsdiscord js v12 if user has rolecheck everyone who has role discord jshow to check if a user has a role in discord jsdiscord js how do a see if user has rolediscord check if member has rolecheck if role is specified in the message discord jsdetect if user have a role discord jsdiscord js check if user has a role in another serverdiscord js check roleget if member has role discord jsdiscord js check if user has role in another serverdiscord js has rolecheck if taged user has role discord jsuser has role discord jscheck the role member id discord jshow to check if a role has a permission discord jsdiscordjs check if user has rolehow to check how many users have a role discord jshow to check if a member ha sdcertain role discord jscheck if a guild has that role discord jsdetect if user have a role discord jcheck if memeber has role discord jsdiscordjs if role ishow to check when a player has a role discord jjscheck every role in discord jsdiscord js check if can mention rolediscord js how to see if someone has a role discord jsdiscord js check every user with rolecheck if user has role discord jsif user is given a specifik role discord jshow to check if a member has a role in discordjscheck roles discord jscheck if role exists by id discord jsdiscord js check role has users in itif member has role discord jsdiscord js how to check what roles a user hashow to check if the user that is mentioned has a specific role discord jscheck if user who reacts has certain role discordjsdiscord bot check if user has rolediscord js how to see if mentioned user has rolecheck if a mentioned user has a role discordjs code examplehow to check if a user has 1 of 3 roles discord jscheck if role exists discord jsdiscord js message author has rolescheck if user has roles discordjscheck role of mentionned member discord jshow to check if someone has 2 roles discord jshas role in discord jshow to check if user doesn 27t have a role discordhow to see if a user has a role in discord jsdiscord js who has rolecheck if user has certain role discordjsdiscord js user has rolediscord js check if role existscheck who user added role discord jsdiscord js if mentioned user has roleif member has role id discord jscheck tagged member has role discord jsdiscord js how to check if message member has rolehow to check if a id is a role discord jsdiscord js role checkcheck if mentioned user has role discord jscheck if member has role discord jscheck if user has roles discord js v12check if a mentioned user has a role discordjshow to check if a role exists on a discord server jsdiscord how to check if user has role node jsdiscord js check if user get rolehow to check if role exists in discord jsdiscord js v12 check if user has rolecheck if user has a role discord pyhow to check if member have certain role discord js v12how to check if a role exists discord jscheck if user have one role discord jsdiscordjs if has role idhow to check if a user role in discordjsdiscord js check rolediscord js if player has a rolecheck if member has roles discord jsdiscord js if user has role iuddiscord js check if user has a roleuser has role discordjscheck if user got roles discord jschecking if a user has a role in discord jsdiscord js if player has rolecheck for certain role discord jscheck if someone has a role discord jsdiscord js check user rolecheck if user has specific rolen discord jsdiscord js if user has rolediscord js how to check if mentioned user has rolehow to check if a user has a role from an array js discord jscheck a user has specific role discord jschecking if the user has an role discord jsif a member has this role do this discord jsdiscord js see if a user has a rolediscord js check if user got rolecheck if member has role using id discord js 12discord js if message member has some role iddiscord js check if author has rolediscord js check if message author has rolediscord js check if someone has role in other servercheck id person has role in discord jscheck if user id has role discord jscheck if author have a specific role discordjscheck if user has a role discord js idcheck role with id discord jsdiscord js if user got rolehow to check if role user has in discord jscheck if player has an role discord kshow to check user role id discord jshow to check if user has any role discord jshow to detect a user 27s role discord jsdiscord js check if user has rolediscord js check if user have at least one of the rolescheck if user has roles discord jscheck if member has role discord js v12check if roles is mentioned discord jshow to check if member has role discord jsdiscord js check if user has role with mentiondiscord js how to know if some1 is staffcheck if role is mentioned in the message discord jshow to check if any member has a role discord jscheck role in discord jscheck is the user has a role discord jscheck if user has has a role discord jscheck if user has role discord js v12if user has role discordjsdiscord js check role existencehow to check a users roles discordjsif user has role or is user id discord jsdiscord js v13 check if user has rolehow to check if user has role discord jsdiscord js check if user has role by iddiscord js check for rolediscordjs v12 check if user has rolediscord js if message member has some rolediscord js test if user has rolehow to check if a member has certain role discord js by idonly run command if user has role discord jshow to check if user has rolediscord js check if member has role via role idhow to see if a person has a discord rolecheck if user has discord role jscheck if member role is higher discord jsdiscordjs check for rolehow to check what roles a user has discord jsdiscordjs member has rolecheck if role exist discord jsdiscord js if user has rolecheck if member has role by reaction discord jshow to check if someone has a role in discord jsdiscord js check if somone has role by idcheck if role id exists discord jscheck if user has certain roles dsicord jscheck if user has role discordcheck if a specific user has role discord jscheck if user has role discoerd sjscheck if someone has get the role discord jscheck if a mentioned user has a role discord jsdiscordjs check if you have a rolehow to check if soeone has a role discord js v12discord js if role existshow to check if author has a role discord jshow to check what roles a member has discord jshow to see if somone has a role discord js guidediscord js v12 check if user has rolehow to check if a message author has a role discord jsdiscord js detect if a role is added to a userdiscord check if user has rolediscord js check if user have rolesee if member has role discord jscheck if user have the role with reaction discord jshow to check if user have rolehow to detect if a role exists discord jsdiscord js check if user has rolecheck if role id is real discord jsdiscord js if role isdiscord js how to check if a user doesn 27t have a rolehow to check if a member has a role discord jscheck if someone get the role discord jscheck for role discord jsdiscord js detect if user has rolecheck if user has role discord js v16if user have role discordjscheck if author have role discord jsdiscord js roles haschecking if a user has a role discord jschecking if a member has a role discor dkjsdiscord js check if role existsdiscordjs if userid has rolediscord js check if member has rolecheck if player has role discord jscheck for user role name discord jshow to check all users that have a discord role discord jshow to check if the message author has a role discord jscheck role discord jshow to check if user has role discord jscheck if a user has a role discord jscheck if a user has a role discor jsdiscord js if member has roleif user has a specifik role discord jscheck member roles discord jsdiscord js check persons rolehow to check if a member has a rolediscordjs has rolecheck if member has specific role discord js discord js v13discord js if user has role idcheck if a member has a role discord ycheck if someonse has a role discord jsif user has role discord jshow to check mention roles discord jsdiscord js check if user has role nodejscheck if a member has a role discord jsdiscordjs find user who on rolecheck if mention has a role discord jshow to check if someone has specific role discord js v12check if use has role discord jsdiscord js check if user has role v12if user has role discord jsjs check if user has rolediscord js how to check if a user has a rolecheck if member has role in discord jsdiscord bot how to check if a user has rolediscord js get member rolesdiscordjs 12 check if member has role check if mentioned role discord jshas role discord jscheck if user has role discord js iddiscord js 2c check if user has a specific rolehow to tell if a user has a role discord js v12check if role discorddiscord js member has roledoiscord js check if user has certain rolediscord js check if bot can apply rolehow to check if a user has a role in discord js v12how to check user has roles discord jscheck if someone adds role discord jscheck if member has specific role discord jshow to see if a user does not have a role discord jsdiscord js how to check if someone has a rolediscord net check if user has rolechecking if a user has a role in discord js