Last active
May 31, 2022 17:53
-
-
Save toxicbloud/11d1470998a27ef8cec05b8a2f369de4 to your computer and use it in GitHub Desktop.
DiscordJS Welcoming message exemple for multiples server Bots using System messages Channel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thx discord for changing systemChannelID to systemChannelId .....