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
- 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 OPi dont think non guild members will be included
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?
Both rely on members being mentioned
why not just use slash commands
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)You'd have to fetch the user
I dont see how you'd be able to mention non guild members
I don't need to mention them using the bot. I wasn't sure if this was intended so I asked in here.