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

Implement app subscriptions #111

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

AnotherZane
Copy link
Collaborator

@AnotherZane AnotherZane commented Jan 2, 2024

Description

Implemented SKUs and Entitlements as a part of App Subscriptions.

Changelog Ref:

Checklist

  • I discussed this PR with the maintainer(s) prior to opening it.
  • I read the contributing guidelines.
  • I tested the changes in this PR.

Comment on lines +20 to +23
Snowflake applicationId, int limit = Discord.Limits.Rest.FetchEntitlementsPageSize,
Snowflake? userId = null, Snowflake[]? skuIds = null,
Snowflake? beforeId = null, Snowflake? afterId = null,
Snowflake? guildId = null, bool excludeEnded = false,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm not sure if before and after here are mutually exclusive since it's not documented and I have no way to test it. Hence, I'm not using fetch direction here, would require someone with a verified bot to test it.

Ideally userId and guildId should also be mutually exclusive and we would use ownerId and ownerType, similar to the json parameters used by the Create Test Entitlement endpoint. However, once again there is no documentation specifying such, so I've let it be as is.

Purchase = 1,

/// <summary>
/// The entitlement was a part of a Discord Nitro subscription.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not so sure about this description, the docs aren't very clear about it.

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.

1 participant