DiscordJS Welcoming message exemple for multiples server Bots using System messages Channel

Home   »   DiscordJS Welcoming message exemple for multiples server Bots using System messages Channel

client.on("guildMemberAdd", (member) => {
  if(member.guild.systemChannelID!=null){
    client.channels.cache.get(member.guild.systemChannelID).send(`Bonjour <@${member.id}> bienvenue sur : ${member.guild.name}`)
  }else{
    console.log('ce serveur n a pas de channel systeme');
  }
});

Leave a Reply

Your email address will not be published. Required fields are marked *