到目前为止,我有这个:
bot.on('guildMemberAdd', member => { console.log('User ' + member.user.username + ' has joined the server!');
var role = member.guild.roles.cache.find(role => role.name === 'Fan'); member.roles.add(role)
});
没有错误,根本没有记录任何内容或没有提供任何角色...
请帮忙吗?