Advertisement
Guest User

Untitled

a guest
Apr 21st, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. const Discord = require("discord.js");
  2.  
  3. module.exports.run = async (bot, message, args) => {
  4. bot.on('guildMemberAdd', member =>{
  5.  
  6. const channel = member.guild.channels.find(channel => channel.name === "welcome");
  7. if(!channel) return;
  8. let sicon = message.guild.iconURL;
  9. let welcomeEmbed = new Discord.RichEmbed()
  10.  
  11. .setTitle("**Welcome to X**")
  12. .setDescription(`X`)
  13. .setColor("#15f153")
  14. .setThumbnail(sicon)
  15.  
  16. channel.send(welcomeEmbed);
  17. });
  18. }
  19.  
  20. module.exports.help = {
  21. name: "welcome"
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement