Skip to content

Conversation

@areodot
Copy link
Contributor

@areodot areodot commented Sep 28, 2024

Wanna Make Some Money?

This pull request adds support for discord's monetization features, it adds entitlement and sku structures, the new premium button type and the three new events ENTITLEMENT_CREATE, ENTITLEMENT_UPDATE and ENTITLEMENT_DELETE.

@bsian03 bsian03 mentioned this pull request Sep 29, 2024
55 tasks
@bsian03
Copy link
Collaborator

bsian03 commented Oct 19, 2024

Please resolve conflicts and lint

@bsian03
Copy link
Collaborator

bsian03 commented Oct 19, 2024

Also need to update for when #1532 gets merged, see discord/discord-api-docs#7109

@bsian03
Copy link
Collaborator

bsian03 commented Oct 19, 2024

@areodot
Copy link
Contributor Author

areodot commented Oct 25, 2024

I wIll look into the pr's you sent later

@areodot
Copy link
Contributor Author

areodot commented Nov 10, 2024

Hey!
Thank you for your review. I have looked at the pull requests you have submitted, and it does not look like they have anything to do with the contents of my PR, more specifically:

With that said, I would like to keep this pull request open until #1532 is finalized.

Thank you.

@bsian03 bsian03 requested a review from Copilot September 27, 2025 15:22
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request adds comprehensive support for Discord's monetization features, enabling premium app functionality through entitlements, SKUs, and subscriptions.

  • Adds new structures for Entitlement, SKU, and Subscription with corresponding CRUD operations
  • Implements premium button type (ButtonStyles.PREMIUM) and new gateway events
  • Extends User and Guild classes with entitlement management methods

Reviewed Changes

Copilot reviewed 11 out of 13 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
lib/structures/User.js Adds entitlement creation and retrieval methods for users
lib/structures/Subscription.js New structure representing Discord subscriptions with billing periods
lib/structures/SKU.js New structure for Stock Keeping Units with subscription management
lib/structures/Guild.js Adds entitlement creation and retrieval methods for guilds
lib/structures/Entitlement.js New structure representing app entitlements with consumption tracking
lib/rest/Endpoints.js Adds API endpoints for entitlements, SKUs, and subscriptions
lib/gateway/Shard.js Implements gateway event handlers for entitlement and subscription events
lib/Constants.js Adds enums for entitlement types, SKU types, and subscription statuses
lib/Client.js Implements client methods for entitlement and SKU management
index.js Exports new structures for CommonJS usage
esm.mjs Exports new structures for ES module usage

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@bsian03 bsian03 requested a review from Copilot September 27, 2025 16:53
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 11 out of 13 changed files in this pull request and generated no new comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants