discordjs v12 welcome message code example
Example 1: discord.js message on member add
client.on('guildMemberAdd', member => {
member.send("Welcome!");
});
Example 2: farewell discord.js
client.on('guildMemberRemove',(member) => {
client.channels.find('log_channel').send(`**${member.username}** has just left server.. Bye Bye`);
}