SHARE
TWEET

Untitled

a guest Jun 19th, 2019 89 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. client.on('message', message => {
  3.   if(message.content === prefix + 'colors') {
  4.   if(!message.channel.guild) return message.channel.send('**This Commnad only For Servers !**');
  5. let menu = new Discord.RichEmbed()
  6. .setImage('https://www6.0zz0.com/2019/05/22/14/265175773.png')
  7. .setFooter('Colors Menu')
  8. message.channel.sendEmbed(menu)
  9. }})
  10.  
  11.  
  12. client.on('message', function(message) {
  13.     if(!message.channel.guild) return;
  14.     if(message.content === '-ccolors') {
  15.     if(message.member.hasPermission('MANAGE_ROLES')) {
  16.     setInterval(function(){})
  17.     message.channel.send('50 colors are created| ▶️')
  18.     }else{
  19.     message.channel.send('you donot have Permission|❌🚫')
  20.     }
  21.     }
  22.     });
  23.    
  24.     client.on('message', message=>{
  25.     if (message.content === '-ccolors'){
  26.     if(!message.channel.guild) return;
  27.     if (message.member.hasPermission('MANAGE_ROLES')){
  28.     setInterval(function(){})
  29.     let count = 0;
  30.     let ecount = 0;
  31.     for(let x = 1; x < 50; x++){
  32.     message.guild.createRole({name:x,
  33.     color: 'RANDOM'})
  34.     }
  35.     }
  36.     }
  37.     });
  38.  
  39. client.on('message', message => {
  40.             let args = message.content.split(' ').slice(1);
  41.             if(message.content.split(' ')[0] == `${prefix}color`){
  42.             const embedd = new Discord.RichEmbed()
  43.             .setFooter('Requested by '+message.author.username, message.author.avatarURL)
  44.             .setDescription(`**There is no color with this name ** ❌ `)
  45.             .setColor(`ff0000`)
  46.            
  47.             if(!isNaN(args) && args.length > 0)
  48.            
  49.            
  50.             if    (!(message.guild.roles.find("name",`${args}`))) return  message.channel.sendEmbed(embedd);
  51.            
  52.            
  53.             var a = message.guild.roles.find("name",`${args}`)
  54.              if(!a)return;
  55.             const embed = new Discord.RichEmbed()
  56.            
  57.             .setFooter('Requested by '+message.author.username, message.author.avatarURL)
  58.             .setDescription(`**Done , Your color has changed . ✅ **`)
  59.            
  60.             .setColor(`${a.hexColor}`)
  61.             message.channel.sendEmbed(embed);
  62.             if (!args)return;
  63.             setInterval(function(){})
  64.                let count = 0;
  65.                let ecount = 0;
  66.             for(let x = 1; x < 50; x++){
  67.            
  68.             message.member.removeRole(message.guild.roles.find("name",`${x}`))
  69.            
  70.             }
  71.              message.member.addRole(message.guild.roles.find("name",`${args}`));
  72.            
  73.            
  74.             }
  75.             });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top