Thumbnail Components V2 ContainerBuilder
Hi, I have a question, how do I introduce a thumbnail into a ContainerBuilder please?
11 Replies
- 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 staffIf you want to add an image then you can run
.addMediaGalleryComponents on the container
If you specifically want it to be a thumbnail then you need to do .addSectionComponents on the container then on SectionBuilder you can run .setThumbnailAccessoryLike this? Here's my code:
No, so in the
.addSectionComponents you need to make a new SectionBuilder, then on that you can call .setThumbnailAccessory:method: SectionBuilder#setThumbnailAccessory()
discord.js@14.19.3
Sets the accessory of this section to a thumbnail.New code : Error :
A section also needs a TextDisplay component. Not just a Thumbnail/Button
The eddedede text spoils everything how can I re-sort the text to make the embeds like before ?

Just add all of the text to the Section instead of the body of the container. Anything outside of the section component will show up at minimum, under the bottom of the thumbnail/button in the component
You can't overlap components
Okey, Super it is settled thank you all 🙂 :

🇫🇷