Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(args[0].toLowerCase()=='create'){
- let rName = message.content.split(`${bot.prefix}role create `).join("")
- let rColor;
- args.forEach(arg=>{
- if(arg.startsWith("#")){
- rColor=arg
- }
- })
- if(!rName){
- return message.channel.send(`You did not specify a name for your role!`)
- }
- if(!rColor){
- return message.channel.send(`You did not specify a color for your role!`)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement