TypeError: Cannot read property 'roles' of undefined I am trying to give a role when someone joins my discord

前端 未结 0 1521
抹茶落季
抹茶落季 2020-12-24 04:00
client.on(\'guildMemberAdd\', (GuildMember) => {
  let welcomeRole = GuildMember.guild.roles.cache.find(role => role.name === \'Newbie\');

  GuildMember.roles         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题