Skip to content

Commit

Permalink
add comments to EntitlementTest and EntitlementOwnerType
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoffi committed Aug 2, 2024
1 parent 9620435 commit 38a1aff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -2449,11 +2449,13 @@ type Entitlement struct {
// EntitlementOwnerType is the type of entitlement
type EntitlementOwnerType int

// Valid EntitlementOwnerType values
const (
EntitlementOwnerTypeGuildSubscription EntitlementOwnerType = 1
EntitlementOwnerTypeUserSubscription EntitlementOwnerType = 2
)

// EntitlementTest is used to test granting an entitlement to a user or guild
type EntitlementTest struct {
// The ID of the SKU to grant the entitlement to
SkuID string `json:"sku_id"`
Expand Down

0 comments on commit 38a1aff

Please sign in to comment.