client.on("guildMemberAdd", function(member){
const guild = client.guilds.cache.get(id);
const role = guild.roles.cache.find(r => r.name === "Игрок");
member.roles.add(role.id);
});
client.on("guildMemberAdd", function(member){
const role = guild.roles.cache.find(r => r.name === "Игрок");
member.roles.add(role.id);
});
client.on("guildMemberAdd", function(member){
const role = member.guild.roles.find(r => r.name === "Игрок");
member.addRole(role.id);
});