Button Premium SKU
Hi Discord Developer Team,
I am currently working with the latest version of discord.js and have encountered an issue regarding the ButtonStyle.Premium. Based on the documentation, I was expecting to be able to use ButtonStyle.Premium for my bot's message components. However, it appears that this style is not available in the latest release.
In the attached screenshot, you can see that ButtonStyle.Premium is not listed among the available button styles. I have also confirmed this by inspecting the type definitions in the discord-api-types package, which only includes the following styles: Primary, Secondary, Success, Danger, and Link.
Could you please clarify whether ButtonStyle.Premium has been deprecated or if there is another way to implement this feature? If it is still supported, I would appreciate guidance on how to enable or use it in the current version of discord.js.
Thank you for your assistance.
3 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 OPIt's only available in the dev release at the moment
It's not deprecated, in fact it's a replacement for recently deprecated
PREMIUM_REQUIRED
interaction response typeOh yeah, i see un the dev release, thank !