discord.js mention command not picking up users but picks up itself

so I’ve started my bot after a while and for some reason the mention command is not working code and response to the command is below in order of cmd and then response on discord it does picks itself up as a user but not anyone else.

client.on('message', message => {
    if (message.content.startsWith('L!bite')) {
        let targetMember = message.mentions.members.first();
        if (!targetMember) return message.reply('you need to tag a user in order to bite them!!');
        // message goes below!
        message.channel.send(`${targetMember.user}, You just got a bitten!`);
        //message.channel.send({files:["./nom/"]})
        let embed = new Discord.RichEmbed()
        embed.setImage(`https://media1.tenor.com/images/4f5666861516073c1c8015b2af7e2d15/tenor.gif?itemid=14720869`)
        message.channel.send(embed);
    }
});

·..•🎀 𝐹𝐵𝐼𝐿💗𝐿𝐼𝒢𝐼𝑅𝐿 🎀•..·Today at 1:18 PM
L!bite @·..•🎀 𝐹𝐵𝐼𝐿💗𝐿𝐼𝒢𝐼𝑅𝐿 🎀•..·

..·🎀𝐹𝐵𝐼𝐿♡𝓁𝒾𝔟𝓸𝓣🎀·..BOT Today at 1:18 PM
@·..•🎀 𝐹𝐵𝐼𝐿💗𝐿𝐼𝒢𝐼𝑅𝐿 🎀•..·, you need to tag a user in order to bite them!!

I’m just confused on why its saying that I’m or other people are not users? but it picks up itself?

EG
·..•🎀 𝐹𝐵𝐼𝐿💗𝐿𝐼𝒢𝐼𝑅𝐿 🎀•..·Today at 1:18 PM
L!bite @..·🎀𝐹𝐵𝐼𝐿♡𝓁𝒾𝔟𝓸𝓣🎀·..

..·🎀𝐹𝐵𝐼𝐿♡𝓁𝒾𝔟𝓸𝓣🎀·..BOT Today at 1:18 PM
@..·🎀𝐹𝐵𝐼𝐿♡𝓁𝒾𝔟𝓸𝓣🎀·.., You just got a bitten!
GIF HERE

97 thoughts on “discord.js mention command not picking up users but picks up itself”

Leave a Comment