Advertisement
Rashwan-

Avatar Command

Mar 23rd, 2020
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. client.on ('message', async (revolution) => {
  2.   if (!revolution.guild || revolution.author.bot) return false;
  3.   var prefix = "!";
  4.   if (revolution.content.startsWith (prefix + 'avatar')) {
  5.     var user = revolution.guild.member (revolution.mentions.members.first() || revolution.author);
  6.     var embed = new Discord.RichEmbed()
  7.     .setColor ("BLACK")
  8.     .setImage (user.user.avatarURL)
  9.     .setTitle("AVATAR LINK")
  10.     .setURL (user.user.avatarURL)
  11.     revolution.channel.send(embed);
  12.   }
  13. })
  14. //By Rashwan || Revolution Codes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement