Discord v2 components
Hello, I would like to know when the v2 components will be added to discord.js? And if there is currently an alternative to use them in JavaScript?
9 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 OPdiscord.js does not support features until they are officially documented.
While there might be a way for these features to work, it can change at any time without any notice
ohh ok thank you for your response
But how? Is there unofficial documentation or something else, because I tried copying from https://discord.builders/ and I wasn't able to do it
discord.builders – Discord Embed Builder
Use new components in your Discord webhooks
Use new Discord components in messages for free and stylize your server however your want.
ah okk
But actually, I know how to do it, but I still get the error:
DiscordAPIError[50035]: Invalid Form Body
components[0][UNION_TYPE_CHOICES]: Value of field "type" must be one of (1,).
with:
and:
is it: flags: 1 << 7
?
cause with it i get:
its
1 << 15
thank you!! it works
And I just would like to know if its possible to put components like select menu in modals with the api?
or others new things in modals that aren't documented yet
no
oh okk thank you for your responses!