embeds

defaultAvatarURL is used for the dafault icon right, how to get the current avatar?
12 Replies
d.js toolkit
d.js toolkit•3y 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!
ItzDaSrijan
ItzDaSrijanOP•3y ago
also what is data, fields, image, length, provider, url, video used for in embeds?
chewie
chewie•3y ago
displayAvatarURL() is what you want
ItzDaSrijan
ItzDaSrijanOP•3y ago
ah
d.js docs
d.js docs•3y ago
discord Channel: Channels Resource - Embed Object read more
ItzDaSrijan
ItzDaSrijanOP•3y ago
nothing about data, length is given there
chewie
chewie•3y ago
data is that what I send above embed.data is an APIEmbed
ItzDaSrijan
ItzDaSrijanOP•3y ago
alright and last thing, what is length used for I read docs but didn't completely understand
chewie
chewie•3y ago
Its the combined character length of the embed
ItzDaSrijan
ItzDaSrijanOP•3y ago
so I can get the character count
chewie
chewie•3y ago
Yes
ItzDaSrijan
ItzDaSrijanOP•3y ago
ahk gotcha thanks a lot!

Did you find this page helpful?