#Update rows and embeds on a channel.send message

18 messages · Page 1 of 1 (latest)

sharp sigil
#

So, 1 command sends a message to a channel using channel.send which contains some embeds and a button row. Now then the button is clicked I can handle the event no problem. But when I do a interaction.update I can not remove the embeds or rows. I am baffled. The message updates just fine. But the rest remains, even if I manually remove the values from the object and set the embeds to an empty object, they remain. Has anyone else seen this?

past tendonBOT
#

• 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.

sharp sigil
wild wagon
#

explicitly send the things you want to remove

#

it will just update what you send, since you only send embeds, it will only update the embeds, not the other properties

nimble skiff
#

Also as a single object

#

Not string and object as separate Params

wild wagon
#

right, that explains the not changing embeds, ty, i miss those so often

sharp sigil
#

So you mean like this?

                content: "WTAF",
                embeds: [],
                components: []
            });```
wild wagon
#

does it work?

sharp sigil
#

Yerp, that worked. Thanks guys/girls/theys

#

Interesting. Sometimes the row remains but the embeds always vanish :d

wild wagon
#

pretty sure the outcome to that is quite deterministic

#

so i doubt that

sharp sigil
#

Hmm, ok. Some weird stuff going on here.

You are it is deterministic if I run an update in 2 seperate parts of my command file. 1 alwsys removes, 1 doesn't. Time for me to dig 😄

#

Typo.

#

It's late 😄