Editing embeds

How would I edit the embed to include the ping?
15 Replies
d.js toolkit
d.js toolkit2y 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
Squid2y ago
call setDescription() on the specific embed instead of on an array
SuperPEKKA336
SuperPEKKA336OP2y ago
like this?
Squid
Squid2y ago
Do you know what [] means in JavaScript?
SuperPEKKA336
SuperPEKKA336OP2y ago
array ah
SuperPEKKA336
SuperPEKKA336OP2y ago
SuperPEKKA336
SuperPEKKA336OP2y ago
better?
Squid
Squid2y 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
SuperPEKKA336OP2y ago
ah and how would i do that do i do sent.edit();?
Squid
Squid2y ago
did you try it
SuperPEKKA336
SuperPEKKA336OP2y ago
yes
Squid
Squid2y ago
and what happened
SuperPEKKA336
SuperPEKKA336OP2y ago
nvm it worked lol 0 ping can u .gitignore an entire folder?
Squid
Squid2y ago
if that's what the git docs say
SuperPEKKA336
SuperPEKKA336OP2y ago
ok
Want results from more Discord servers?
Add your server