How do I get a user's display name and avatar to use in .setAuthor?
^
15 Replies
⢠What's your exact discord.js 
npm list discord.js and node node -v version?
⢠Post the full error stack trace, not just the top part!
⢠Show your code!
⢠Explain what exactly your issue is.
⢠Not a discord.js issue? Check out #useful-servers.Currently no way
?
<:pr_open:852715356622553088> #9512 in discordjs/discord.js by Syjalo opened <t:1683232367:R> (review required)
feat: support new username system
You can still get a username and avatar, just not what they set as displayName
 User#username
The  username  of  the
  User#username
The  username  of  the  User#displayAvatarURL()
A link to the user's avatar if they have one. Otherwise a link to their default avatar will be returned.
  User#displayAvatarURL()
A link to the user's avatar if they have one. Otherwise a link to their default avatar will be returned.thats what i meant
ah ok
so interactions.option.displayAvatarURL?
const authorURL = interaction.options.displayAvatarURL();
would that be right?Not even slightly
interaction.user
Theyre properties of a user
Or if you want them from an option, 
interaction.options.getUser("option name") and call them on thatoh
so
no  you  have  a  slash  command  where  you  prompt  people  to  select  a  user?
  you  have  a  slash  command  where  you  prompt  people  to  select  a  user?
 you  have  a  slash  command  where  you  prompt  people  to  select  a  user?
  you  have  a  slash  command  where  you  prompt  people  to  select  a  user?o
*no
bros got their own emoji
okay so use 
interaction.user like I said
It isnt an optionso
Yep
k ty