Need help with Component V2 layout (discord.js v14)
Hey! I'm working with Component V2 using the new builders like
ContainerBuilder, SectionBuilder, ThumbnailBuilder, etc. I'm trying to build a layout like this:
- A section with a thumbnail + header
- A separator
- Another section with ping stats text
Here's the code I'm using:4 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!
[400 Bad Request] PATCH /webhooks/.../messages/@original
flags [MESSAGE_CANNOT_REMOVE_COMPONENTS_V2_FLAG]
Error 50035: Invalid Form Body
can anyone help me ?
node v22.16.0
discord.js@14.20.0
ok wait
yes
ah but im using discord.js for Component V2 in this
;-;
just trying something new 🙂
hmm ok but we can use components like this right ?
I'm not creating my own Client instance or connecting to the gateway twice. I'm fully using Seyfert to handle the gateway, commands, etc.
Just needed access to the low-level layout builders because Seyfert doesn't expose custom wrappers for V2 components yet (or I prefer using the raw ones).
So it’s one bot running, one gateway just using both packages for convenience.
Hmm right
Is there any place where I can find detailed docs or examples for Component V2 layouts and how to use all the builders properly?