discord js send message when server joins to servver code example
Example: send a message when a bot joins your server discord.js
client.on('guildCreate', guild => {
guild.systemChannel.send(`Hello, I'm LMAOBOT. Thanks for inviting me, here are a list of all my commands! :alien:`)
});