embeds

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

Did you find this page helpful?