How i change color ContainerBuilder after send?

Hi devs, i need help with this, anyone knows how change the container color after send?
3 Replies
d.js toolkit
d.js toolkit6mo 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! - Marked as resolved by OP
duck
duck6mo ago
you'd need to edit the message with an updated component so depending on how the message was sent and what objects you still have access to - <Message>.components is an array that contains the message's components, including potentially a ContainerComponent - let's say container is your ContainerComponent, you can construct a builder with new ContainerBuilder(container.toJSON()) - <ContainerBuilder>.setAccentColor() - <Message>.edit(), <Interaction>.editReply(), etc
Camacho
CamachoOP6mo ago
Thanks, man

Did you find this page helpful?