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 premium buttons #2752

Merged
merged 22 commits into from
Nov 3, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Move deprecation docs, add a link to changelog
freya022 committed Nov 1, 2024

Verified

This commit was signed with the committer’s verified signature.
freya022 freya02
commit 1e3dc2ec744ac5efcdfb9e0b43a2916f1d69837f
Original file line number Diff line number Diff line change
@@ -25,19 +25,21 @@
import javax.annotation.Nonnull;

/**
* @deprecated Replaced with {@link Button#premium(SkuSnowflake, String)}
*
* Replies with an in-built client message stating that an {@link Entitlement Entitlement} is required.
*
* <p>Replying with {@link #replyWithPremiumRequired()} will automatically acknowledge this interaction.
*
* <p><b>Note:</b>This interaction requires <a href="https://discord.com/developers/docs/monetization/overview" target="_blank">monetization</a> to be enabled.
*
* @deprecated Replaced with {@link Button#premium(SkuSnowflake, String)},
* see the <a href="https://discord.com/developers/docs/change-log#premium-apps-new-premium-button-style-deep-linking-url-schemes" target="_blank">Discord change logs</a> for more details.
*/
@Deprecated
public interface IPremiumRequiredReplyCallback extends IDeferrableCallback
{
/**
* @deprecated Replaced with {@link Button#premium(SkuSnowflake, String)}
* @deprecated Replaced with {@link Button#premium(SkuSnowflake, String)},
* see the <a href="https://discord.com/developers/docs/change-log#premium-apps-new-premium-button-style-deep-linking-url-schemes" target="_blank">Discord change logs</a> for more details.
*/
@Nonnull
@Deprecated
Original file line number Diff line number Diff line change
@@ -58,9 +58,10 @@ enum ResponseType
/** Respond with a modal */
MODAL(9),
/**
* @deprecated Replaced with {@link Button#premium(SkuSnowflake, String)}
*
* Respond with the "Premium required" default Discord message for premium App subscriptions
*
* @deprecated Replaced with {@link Button#premium(SkuSnowflake, String)},
* see the <a href="https://discord.com/developers/docs/change-log#premium-apps-new-premium-button-style-deep-linking-url-schemes" target="_blank">Discord change logs</a> for more details.
*/
@Deprecated
PREMIUM_REQUIRED(10),
Original file line number Diff line number Diff line change
@@ -21,11 +21,12 @@
import net.dv8tion.jda.api.requests.FluentRestAction;

/**
* @deprecated Replaced with {@link Button#premium(SkuSnowflake, String)}
*
* An {@link InteractionCallbackAction} that can be used to send the "Premium required" interaction response.
*
* @see net.dv8tion.jda.api.interactions.callbacks.IPremiumRequiredReplyCallback
*
* @deprecated Replaced with {@link Button#premium(SkuSnowflake, String)}
* see the <a href="https://discord.com/developers/docs/change-log#premium-apps-new-premium-button-style-deep-linking-url-schemes" target="_blank">Discord change logs</a> for more details.
*/
@Deprecated
public interface PremiumRequiredCallbackAction extends InteractionCallbackAction<Void>, FluentRestAction<Void, PremiumRequiredCallbackAction>