When someone joins it gives them the Member role

This commit is contained in:
Andrew Lee 2017-08-14 22:26:25 -04:00
parent e5afab40d6
commit 928c368099

View file

@ -10,6 +10,7 @@ client.on('ready', () => {
client.on("guildMemberAdd", function(member) {
member.guild.channels.find("name", "welcomes-and-byes").sendMessage(member.toString() + " has joined the server");
member.addRole(member.guild.role.find("name", "Member"));
});