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

Support role subscriptions #2027

Closed
zeylahellyer opened this issue Jan 5, 2023 · 0 comments · Fixed by #2034
Closed

Support role subscriptions #2027

zeylahellyer opened this issue Jan 5, 2023 · 0 comments · Fixed by #2034
Assignees
Labels
c-model Affects the model crate d-api Change related to Discord's API. t-feature Addition of a new feature

Comments

@zeylahellyer
Copy link
Member

zeylahellyer commented Jan 5, 2023

@zeylahellyer zeylahellyer added the d-api Change related to Discord's API. label Jan 5, 2023
@zeylahellyer zeylahellyer self-assigned this Jan 5, 2023
@zeylahellyer zeylahellyer added t-feature Addition of a new feature c-model Affects the model crate labels Jan 5, 2023
zeylahellyer added a commit that referenced this issue Jan 5, 2023
Add support for guild role subscriptions. This involves:

- a new `RoleSubscriptionPurchase` variant on `MessageType`
- four new guild features:
  - `CreatorMonetizableProvisional`
  - `CreatorStorePage`
  - `RoleSubscriptionsAvailableForPurchase`
  - `RoleSubscriptionsEnabled`
- a new `GuildSubscription` variant on `GuildIntegrationType`
- two new role tag fields:
  - `available_for_purchase` (bool)
  - `subscription_listing_id` (optional snowflake)

Depends on PR #2030 since it makes `GuildIntegrationType` into an enum
which this adds a variant to, is related to #2032 since it abstracts the
optional null boolean, and relates to #2033 since it reworks tests this
adds to.

API docs:
discord/discord-api-docs@e003051

Closes #2027.
zeylahellyer added a commit that referenced this issue Jan 5, 2023
Add support for guild role subscriptions. This involves:

- a new `RoleSubscriptionPurchase` variant on `MessageType`
- four new guild features:
  - `CreatorMonetizableProvisional`
  - `CreatorStorePage`
  - `RoleSubscriptionsAvailableForPurchase`
  - `RoleSubscriptionsEnabled`
- a new `GuildSubscription` variant on `GuildIntegrationType`
- two new role tag fields:
  - `available_for_purchase` (bool)
  - `subscription_listing_id` (optional snowflake)

Relates to #2032 since it abstracts the optional null boolean, and
relates to #2033 since it reworks tests this adds to.

API docs:
discord/discord-api-docs@e003051

Closes #2027.
zeylahellyer added a commit that referenced this issue Jan 5, 2023
Add support for guild role subscriptions. This involves:

- a new `RoleSubscriptionPurchase` variant on `MessageType`
- four new guild features:
  - `CreatorMonetizableProvisional`
  - `CreatorStorePage`
  - `RoleSubscriptionsAvailableForPurchase`
  - `RoleSubscriptionsEnabled`
- a new `GuildSubscription` variant on `GuildIntegrationType`
- two new role tag fields:
  - `available_for_purchase` (bool)
  - `subscription_listing_id` (optional snowflake)

Relates to #2032 since it abstracts the optional null boolean, and
relates to #2033 since it reworks tests this adds to.

API docs:
discord/discord-api-docs@e003051

Closes #2027.
@zeylahellyer zeylahellyer linked a pull request Jan 5, 2023 that will close this issue
7596ff pushed a commit that referenced this issue Jan 17, 2023
Add support for guild role subscriptions. This involves:

- a new `RoleSubscriptionPurchase` variant on `MessageType`
- four new guild features:
  - `CreatorMonetizableProvisional`
  - `CreatorStorePage`
  - `RoleSubscriptionsAvailableForPurchase`
  - `RoleSubscriptionsEnabled`
- a new `GuildSubscription` variant on `GuildIntegrationType`
- two new role tag fields:
  - `available_for_purchase` (bool)
  - `subscription_listing_id` (optional snowflake)

Relates to #2032 since it abstracts the optional null boolean, and
relates to #2033 since it reworks tests this adds to.

Closes #2027.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c-model Affects the model crate d-api Change related to Discord's API. t-feature Addition of a new feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant