Skip to content

Commit

Permalink
properly format changes in entitlement and events
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoffi committed Aug 2, 2024
1 parent 84ecf01 commit 6725cb4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions entitlement.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ const (
EntitlementTypeApplicationSubscription = 8
)

// Entitlements represent that a user or guild has access to a premium offering
// Entitlement represents that a user or guild has access to a premium offering
// in your application.
type Entitlement struct {
// The ID of the entitlement
ID string `json:"id"`

// The ID of the SKU
SKUID string `json:"sku_id"`
SkuID string `json:"sku_id"`

// The ID of the parent application
ApplicationID string `json:"application_id"`
Expand Down Expand Up @@ -51,4 +51,4 @@ type Entitlement struct {
// Whether or not the entitlement has been consumed.
// Only available for consumable items.
Consumed bool `json:"consumed"`
}
}
2 changes: 1 addition & 1 deletion events.go
Original file line number Diff line number Diff line change
Expand Up @@ -460,4 +460,4 @@ type EntitlementUpdate struct {
// NOTE: Entitlements are not deleted when they expire.
type EntitlementDelete struct {
*Entitlement
}
}

0 comments on commit 6725cb4

Please sign in to comment.