Editing embeds

How would I edit the embed to include the ping?
15 Replies
d.js toolkit
d.js toolkit•3y ago
• 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.
Squid
Squid•3y ago
call setDescription() on the specific embed instead of on an array
SuperPEKKA336
SuperPEKKA336OP•3y ago
like this?
Squid
Squid•3y ago
Do you know what [] means in JavaScript?
SuperPEKKA336
SuperPEKKA336OP•3y ago
array ah
SuperPEKKA336
SuperPEKKA336OP•3y ago
SuperPEKKA336
SuperPEKKA336OP•3y ago
better?
Squid
Squid•3y ago
That "works" but you're only setting the description on the embed object within your code You need to actually edit the message with the newly-updated embed
SuperPEKKA336
SuperPEKKA336OP•3y ago
ah and how would i do that do i do sent.edit();?
Squid
Squid•3y ago
did you try it
SuperPEKKA336
SuperPEKKA336OP•3y ago
yes
Squid
Squid•3y ago
and what happened
SuperPEKKA336
SuperPEKKA336OP•3y ago
nvm it worked lol 0 ping can u .gitignore an entire folder?
Squid
Squid•3y ago
if that's what the git docs say
SuperPEKKA336
SuperPEKKA336OP•3y ago
ok

Did you find this page helpful?