Discord.js 尝试先使用msg.indications.users.first执行dm命令,但它';它不工作了

Discord.js 尝试先使用msg.indications.users.first执行dm命令,但它';它不工作了,discord.js,Discord.js,所以,这个代码不起作用,我不知道为什么。错误是无法读取未定义的的属性“first”,但我已经使用了它,并且它工作正常- 如果你能帮忙,我将不胜感激 您在.setDescription('Sup**${msg.indications.user.first().tag…}}中有一个输入错误。它的msg.indications.users.first()(在“users”中缺少一个“s”)。此外,如果您要反复使用上述用户对象,请将其存储在变量中,然后访问该对象的属性。噢,哈哈,我总是在这里提供帮助!

所以,这个代码不起作用,我不知道为什么。错误是
无法读取未定义的
的属性“first”,但我已经使用了它,并且它工作正常-


如果你能帮忙,我将不胜感激

您在
.setDescription('Sup**${msg.indications.user.first().tag…}}
中有一个输入错误。它的
msg.indications.users.first()
(在“users”中缺少一个“s”)。此外,如果您要反复使用上述用户对象,请将其存储在变量中,然后访问该对象的属性。

噢,哈哈,我总是在这里提供帮助!
    if(msg.content.startsWith("&%walcome")){
        const mentionid = bot.users.cache.get(`${msg.mentions.users.first().id}`)
            const up = new Discord.MessageEmbed()
            .setColor('#C8CAF9')
            .setTitle('Sup')
            .setThumbnail(`${msg.mentions.users.first().displayAvatarURL()}`)
            .setDescription(`Sup **${msg.mentions.user.first().tag}**, be welcome to MFPA Official Discord Community. If you joined withouht knowing wth is this server, I will explain: this is the official server of the series with the same new, that is available on youtube (https://www.youtube.com/channel/UCWZRrkidNF5Se8fkgGzoxgg)`)
            .addFields(
                {name: 'Fun in server', value: 'That is right, dear new member, you can actually have fun in this channel! We have some custom emojis, events, chat (sometimes is dead but eh-). But!, first of all, do not forget to go to #verify (823564914605686844) to get access to the server'},
                {name: 'Specific Announcements', value: 'You can receive specific announcements (Faded Pics, Betro Ideas and Dani Sounds) if you are interested in the whole production of the series'},
                {name: 'If you need help, just dm a staff member', value: 'Thats right, if you need help, you can contact one of the Staff Team member, they will reply when available'}
            )
            .setFooter(`Sent by ${msg.author.tag}, bot made by dani bear#3606`, `${msg.author.displayAvatarURL()}`)
               mentionid.send(up)
            }
})