1client.on('guildCreate', guild => {
2 guild.systemChannel.send(`Hello, I'm LMAOBOT. Thanks for inviting me, here are a list of all my commands! :alien:`)
3});
4
1client.on('guildCreate', guild => {
2 const channel = guild.channels.cache.find(channel => channel.type === 'text' && channel.permissionsFor(guild.me).has('SEND_MESSAGES'))
3 channel.send("Thanks for inviting me")
4})
5