Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const Discord = require("discord.js");
- module.exports.run = async (bot, message, args) => {
- bot.on('guildMemberAdd', member =>{
- const channel = member.guild.channels.find(channel => channel.name === "welcome");
- if(!channel) return;
- let sicon = message.guild.iconURL;
- let welcomeEmbed = new Discord.RichEmbed()
- .setTitle("**Welcome to X**")
- .setDescription(`X`)
- .setColor("#15f153")
- .setThumbnail(sicon)
- channel.send(welcomeEmbed);
- });
- }
- module.exports.help = {
- name: "welcome"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement