Skip to content
New issue

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

Add support for premium buttons #2905

Merged
merged 2 commits into from
Jul 25, 2024

Conversation

mkrasnitski
Copy link
Collaborator

Fixes #2904

Adds support for the new premium buttons that replace the PREMIUM_REQUIRED interaction response type, which has been deprecated.

@github-actions github-actions bot added model Related to the `model` module. builder Related to the `builder` module. labels Jun 18, 2024
@vicky5124
Copy link
Contributor

Are there any use cases for the store link without a SKU? If there are, it may be worth implementing it, otherwise, it is fine to be left out IMO.

@mkrasnitski
Copy link
Collaborator Author

The store link does in fact get rendered as a rich embed too (docs), however I don't really know which struct would be best suited to have a method that returns the url.

@vicky5124
Copy link
Contributor

Both could either have an additional method, or make the existing url() method require a with_sku: bool argument.

Alternatively, or additively, IntegrationApplication, PartialCurrentApplicationInfo and CurrentApplicationInfo could have the method, as they hold the application ID.

@mkrasnitski
Copy link
Collaborator Author

mkrasnitski commented Jul 10, 2024

Sorry for the delay, should be good for merge now.

@arqunis arqunis added enhancement An improvement to Serenity. discord feature Related to Discord's functionality. labels Jul 25, 2024
@arqunis arqunis merged commit c7540cd into serenity-rs:current Jul 25, 2024
22 checks passed
@mkrasnitski mkrasnitski deleted the premium-buttons branch July 28, 2024 13:50
jamesbt365 pushed a commit to jamesbt365/serenity that referenced this pull request Jul 29, 2024
Fixes serenity-rs#2904

This adds support for the new premium buttons that replace the
`PREMIUM_REQUIRED` interaction response type, which has been deprecated.
arqunis pushed a commit that referenced this pull request Aug 5, 2024
#2928)

This was deprecated on `current` in #2905, so it can be removed here on
`next`.
GnomedDev pushed a commit that referenced this pull request Aug 16, 2024
#2928)

This was deprecated on `current` in #2905, so it can be removed here on
`next`.
GnomedDev pushed a commit to GnomedDev/serenity that referenced this pull request Oct 7, 2024
serenity-rs#2928)

This was deprecated on `current` in serenity-rs#2905, so it can be removed here on
`next`.
GnomedDev pushed a commit to GnomedDev/serenity that referenced this pull request Oct 20, 2024
serenity-rs#2928)

This was deprecated on `current` in serenity-rs#2905, so it can be removed here on
`next`.
GnomedDev pushed a commit that referenced this pull request Oct 20, 2024
#2928)

This was deprecated on `current` in #2905, so it can be removed here on
`next`.
GnomedDev pushed a commit to GnomedDev/serenity that referenced this pull request Nov 11, 2024
serenity-rs#2928)

This was deprecated on `current` in serenity-rs#2905, so it can be removed here on
`next`.
GnomedDev pushed a commit that referenced this pull request Nov 13, 2024
#2928)

This was deprecated on `current` in #2905, so it can be removed here on
`next`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
builder Related to the `builder` module. discord feature Related to Discord's functionality. enhancement An improvement to Serenity. model Related to the `model` module.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update to the monetization API
3 participants