getting message.author esque information
weird question i know, probably phrased weirder too, but I'm trying to get this information in the screenshot im sending without doing anything like message.author etc, i want to know if i can do it without a message.author, or without the user typing the command pinging that person and then doing message.mentions.users.first etcetc, my goal is to extract the information from a specific user without mentioning them when typing the command
6 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!i know my question is very weirdly worded, but my command is smthn like t.challenge against the bot, and i wanna use the bot's information for like pfp's etc but it wouldnt make sense to do t.challenge @botnamestuff and get the information like that
you can fetch a
User
with <Client>.users.fetch(<id>)
, but if you're specifically looking for the client user, you can just access <Client>.user
client user would be the person who wrote the command?
the client user refers to the user your client is logged in as, which is to say your bot
ah ic
ill try figuring out the rest, thats exactly what i needed tho thx