We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
discord.js
Discord has recently updated the way premium interactions work and it would be great to be able to use it with discord.js.
Deprecate or remove Interaction#sendPremiumRequired https://discord.com/developers/docs/change-log#premium-apps-new-premium-button-style-deep-linking-url-schemes
Interaction#sendPremiumRequired
This change deprecates Interaction Response Type 10
Add ButtonStyle#Premium and a new skuId field for buttons and the corresponding methods on the ButtonBuilder (e. g. #setSkuId) https://discord.com/developers/docs/interactions/message-components#button-object-button-styles
ButtonStyle#Premium
skuId
ButtonBuilder
#setSkuId
Premium buttons must contain a sku_id, and cannot have a custom_id, label, url, or emoji
sku_id
custom_id
label
url
emoji
Example premium button object:
{ "type": 2, "style": 6, "sku_id": "<SKU ID>" }
Add SKU#getUrl and ClientApplication#getStoreUrl (can also be Client#getStoreUrl) https://discord.com/developers/docs/monetization/skus#linking-to-your-skus
SKU#getUrl
ClientApplication#getStoreUrl
Client#getStoreUrl
You can link directly to a specific SKU using our Application Directory Store URL scheme: https://discord.com/application-directory/:appID/store/:skuID
https://discord.com/developers/docs/monetization/managing-your-store#linking-to-your-store
You can link directly to your Store using our Application Directory Store URL scheme: https://discord.com/application-directory/:appID/store
No response
The text was updated successfully, but these errors were encountered:
Hi, be sure to search open issues and pull requests. It could have saved you writing all this.
Sorry, something went wrong.
oh I only looked at the issues i'm sorry 💀
Successfully merging a pull request may close this issue.
Which application or package is this feature request for?
discord.js
Feature
Discord has recently updated the way premium interactions work and it would be great to be able to use it with discord.js.
Ideal solution or implementation
Deprecate or remove
Interaction#sendPremiumRequired
https://discord.com/developers/docs/change-log#premium-apps-new-premium-button-style-deep-linking-url-schemes
Add
ButtonStyle#Premium
and a newskuId
field for buttons and the corresponding methods on theButtonBuilder
(e. g.
#setSkuId
)https://discord.com/developers/docs/interactions/message-components#button-object-button-styles
Example premium button object:
Add
SKU#getUrl
andClientApplication#getStoreUrl
(can also beClient#getStoreUrl
)https://discord.com/developers/docs/monetization/skus#linking-to-your-skus
https://discord.com/developers/docs/monetization/managing-your-store#linking-to-your-store
Alternative solutions or implementations
No response
Other context
No response
The text was updated successfully, but these errors were encountered: