Advertisement
Guest User

Untitled

a guest
May 22nd, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. else if (dUser.highestRole.id === '507449170530140161') {
  2. RankFromTo = 'From Helper To Member'
  3. console.log('Helper');
  4.  
  5. (async () => {
  6. console.log('Starting async');
  7. dUser.removeRole('507449170530140161');
  8. dUser.removeRole('516926778552483860');
  9. dUser.removeRole('482910479698755624');
  10. console.log('Roles Removed');
  11.  
  12. const successEmbed = new Discord.RichEmbed()
  13. .setColor('#1CFF06')
  14. .setTitle('Success')
  15. .setThumbnail(`${message.author.displayAvatarURL}`)
  16.  
  17. message.channel.send(successEmbed);
  18. console.log('Success embed made and sent');
  19.  
  20. const demotionEmbed = new Discord.RichEmbed()
  21. .setColor('#cc0000')
  22. .setTitle('Demotion')
  23. .setThumbnail(User.displayAvatarURL)
  24. .addField(`${message.author.username} has demoted`, `${User.username} ${RankFromTo}`)
  25. .addField('The reason for this demotion is', dReason)
  26. .setTimestamp()
  27.  
  28. logChannel.send(demotionEmbed);
  29. console.log('Demotion Embed made and sent');
  30.  
  31. });
  32.  
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement