Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- else if (dUser.highestRole.id === '507449170530140161') {
- RankFromTo = 'From Helper To Member'
- console.log('Helper');
- (async () => {
- console.log('Starting async');
- dUser.removeRole('507449170530140161');
- dUser.removeRole('516926778552483860');
- dUser.removeRole('482910479698755624');
- console.log('Roles Removed');
- const successEmbed = new Discord.RichEmbed()
- .setColor('#1CFF06')
- .setTitle('Success')
- .setThumbnail(`${message.author.displayAvatarURL}`)
- message.channel.send(successEmbed);
- console.log('Success embed made and sent');
- const demotionEmbed = new Discord.RichEmbed()
- .setColor('#cc0000')
- .setTitle('Demotion')
- .setThumbnail(User.displayAvatarURL)
- .addField(`${message.author.username} has demoted`, `${User.username} ${RankFromTo}`)
- .addField('The reason for this demotion is', dReason)
- .setTimestamp()
- logChannel.send(demotionEmbed);
- console.log('Demotion Embed made and sent');
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement