#getting message.author esque information

7 messages · Page 1 of 1 (latest)

viscid island
#

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

tawdry ingotBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • Not a discord.js issue? Check out #1081585952654360687.
  • 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!
viscid island
#

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

fathom needle
#

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

viscid island
#

client user would be the person who wrote the command?

fathom needle
#

the client user refers to the user your client is logged in as, which is to say your bot

viscid island
#

ah ic