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

App Premium implementation #9453

Merged
merged 63 commits into from
Oct 19, 2023
Merged

App Premium implementation #9453

merged 63 commits into from
Oct 19, 2023

Conversation

Luc1412
Copy link
Contributor

@Luc1412 Luc1412 commented Jun 17, 2023

Summary

This represent the implementation of App Subscriptions/App Premium.

I was already able to test the implementation, since I got invited to join the Beta. Based on my tests, everything should work flawlessly.

This PR may need improvements regarding util methods, which interconnect models and simplify the workflow with entitlements.

Checklist

  • If code changes were made then they have been tested.
    • I have updated the documentation to reflect the changes.
  • This PR fixes an issue.
  • This PR adds something new (e.g. new method or parameters).
  • This PR is a breaking change (e.g. methods or parameters removed/renamed)
  • This PR is not a code change (e.g. documentation, README, ...)

@Luc1412 Luc1412 marked this pull request as ready for review September 26, 2023 20:16
@Luc1412 Luc1412 requested a review from Rapptz October 5, 2023 19:27
discord/sku.py Show resolved Hide resolved
@Luc1412 Luc1412 requested a review from Rapptz October 6, 2023 07:13
Copy link
Contributor

@Puncher1 Puncher1 left a comment

Choose a reason for hiding this comment

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

discord/enums.py Show resolved Hide resolved
discord/flags.py Show resolved Hide resolved
discord/flags.py Show resolved Hide resolved
discord/sku.py Show resolved Hide resolved
discord/sku.py Outdated Show resolved Hide resolved
discord/sku.py Outdated Show resolved Hide resolved
discord/sku.py Outdated Show resolved Hide resolved
discord/types/sku.py Outdated Show resolved Hide resolved
docs/api.rst Show resolved Hide resolved
@Luc1412
Copy link
Contributor Author

Luc1412 commented Oct 8, 2023

I'd say we better wait for an official approval of this PR.

@Rapptz
Copy link
Owner

Rapptz commented Oct 8, 2023

That PR is by an employee.

@Luc1412
Copy link
Contributor Author

Luc1412 commented Oct 8, 2023

That PR is by an employee.

My bad. Missed the contributor tag. Then gonna add these changes.

Copy link
Owner

@Rapptz Rapptz left a comment

Choose a reason for hiding this comment

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

Minor doc nits.

There's a bit of a gotcha with the design if someone decides to save Entitlement instances to a variable somewhere since those instances aren't ever updated with gateway information those instances will became stale. It's not an issue with this PR, but it's something to keep in mind.

discord/state.py Outdated Show resolved Hide resolved
discord/state.py Outdated Show resolved Hide resolved
docs/api.rst Outdated Show resolved Hide resolved
docs/api.rst Outdated Show resolved Hide resolved
docs/api.rst Outdated Show resolved Hide resolved
docs/api.rst Outdated Show resolved Hide resolved
docs/api.rst Outdated Show resolved Hide resolved
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
@Luc1412 Luc1412 requested a review from Rapptz October 19, 2023 10:01
Copy link
Owner

@Rapptz Rapptz left a comment

Choose a reason for hiding this comment

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

Thanks.

@Rapptz Rapptz merged commit 99618c8 into Rapptz:master Oct 19, 2023
8 checks passed
@Luc1412 Luc1412 deleted the app-premium branch October 19, 2023 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants