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

feat(entitlements): add premium entitlements #1138

Open
wants to merge 34 commits into
base: master
Choose a base branch
from

Conversation

kingmigdor
Copy link
Contributor

@kingmigdor kingmigdor commented Oct 22, 2023

Summary

Discord recently added a feature where bots can implement their own premium versions to earn some money. This PR is adding functionality to fetch the entitlements of the users aswell as receiving the events of these. This PR also adds the interaction response type 10, which is the response to prompt the user to subscribe to the bot's premium subscription.

Testing code: https://paste.nextcord.dev/?id=1698181802920231

This is a Code Change

  • I have tested my changes.
  • I have updated the documentation to reflect the changes.
  • I have run task pyright and fixed the relevant issues.

kingmigdor and others added 30 commits October 22, 2023 01:48
@kingmigdor kingmigdor marked this pull request as ready for review October 22, 2023 15:33
@teaishealthy teaishealthy changed the title feat(entitlements): Adding support for premium entitlements feat(entitlements): add premium entitlements Oct 30, 2023
Copy link
Collaborator

@Skelmis Skelmis left a comment

Choose a reason for hiding this comment

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

Given discords removal of some areas covered by this PR with guidance not to add them to libs I think we wait for a bit. Link

nextcord/entitlement.py Outdated Show resolved Hide resolved
nextcord/entitlement.py Outdated Show resolved Hide resolved
nextcord/entitlement.py Show resolved Hide resolved
nextcord/entitlement.py Show resolved Hide resolved
nextcord/enums.py Show resolved Hide resolved
@kingmigdor
Copy link
Contributor Author

Given discords removal of some areas covered by this PR with guidance not to add them to libs I think we wait for a bit. Link

They did not made significant changes to the API which makes this pr still work without any issues

@EmreTech EmreTech added p: low Priority: low - not important to be worked on s: awaiting review Status: the issue or PR is awaiting reviews t: api coverage Type: api coverage - this adds code to cover the discord API labels May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p: low Priority: low - not important to be worked on s: awaiting review Status: the issue or PR is awaiting reviews t: api coverage Type: api coverage - this adds code to cover the discord API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants