на члене присоединиться к Discord JS
bot.on('guildMemberAdd', member => {
// member joined
});
Barrulik
bot.on('guildMemberAdd', member => {
// member joined
});
client.on('guildCreate', guild => {
const channel = guild.channels.cache.find(channel => channel.type === 'text' && channel.permissionsFor(guild.me).has('SEND_MESSAGES'))
channel.send("Thanks for inviting me")
})