message.mentions.users being incomplete

When using message.mentions.users user who are not in the guild/cached by the bot, aren't in the collection. I pinged them using <@id> and <@!id> instead of using discords built in selector, if that matters. The pings are shown correctly on my client.
7 Replies
d.js toolkit
d.js toolkit5mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
treble/luna
treble/luna5mo ago
i dont think non guild members will be included
Maxi130
Maxi1305mo ago
It seemed like they would from the naming of the methods. There is a .users and a .members. Or is that just some sort of shortcut to get users object from a member?
treble/luna
treble/luna5mo ago
Both rely on members being mentioned why not just use slash commands
Maxi130
Maxi1305mo ago
That doesn't work for the use case, I'm making a bot to see info on users being mentioned which I don't have cached, so it isn't just like <@12353> but something a bit more useful. I will try to use the regex from the same method. (.UsersPattern)
treble/luna
treble/luna5mo ago
You'd have to fetch the user I dont see how you'd be able to mention non guild members
Maxi130
Maxi1305mo ago
I don't need to mention them using the bot. I wasn't sure if this was intended so I asked in here.