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

[Feature] Premium subscriptions #2781

Merged
merged 8 commits into from
Sep 30, 2023

Conversation

Misha-133
Copy link
Member

@Misha-133 Misha-133 commented Sep 28, 2023

Description

This PR adds premium subscriptions support

Changes

  • added IEntitlement, RestEntitlement & SocketEntitlement

  • added Sku & Entitlement related enums

  • 4 new methods in IDiscordClient

    • CreateTestEntitlementAsync
    • DeleteTestEntitlementAsync
    • GetEntitlementsAsync
    • GetSKUsAsync
  • added new interaction response type

    • added IDiscordInteraction.RespondWithPremiumRequiredAsync
    • added InteractionModuleBase<T>.RespondWithPremiumRequiredAsync
  • added Entitlements to IDiscordInteraction

  • Added state cache for entitlements

    • Entitlement property & GetEntitlement method in the DiscordSocketClient
  • EntitlementCreated, Updated & Deleted events

@Misha-133 Misha-133 marked this pull request as ready for review September 29, 2023 21:22
@MrCakeSlayer MrCakeSlayer merged commit 7723f61 into discord-net:dev Sep 30, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants