Skip to content

Commit

Permalink
add description to Entitlement struct & type
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoffi committed Aug 2, 2024
1 parent 4bbe559 commit 84ecf01
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions entitlement.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package discordgo

// The type of entitlement
// EntitlementType is the type of entitlement (see EntitlementType* consts)
// https://discord.com/developers/docs/monetization/entitlements#entitlement-object-entitlement-types
type EntitlementType int

// Valid EntitlementType values
// https://discord.com/developers/docs/monetization/entitlements#entitlement-object-entitlement-types
const (
EntitlementTypePurchase = 1
EntitlementTypePremiumSubscription = 2
Expand All @@ -16,6 +16,8 @@ const (
EntitlementTypeApplicationSubscription = 8
)

// Entitlements represent that a user or guild has access to a premium offering

Check failure on line 19 in entitlement.go

View workflow job for this annotation

GitHub Actions / lint

comment on exported type Entitlement should be of the form "Entitlement ..." (with optional leading article) (golint)
// in your application.
type Entitlement struct {
// The ID of the entitlement
ID string `json:"id"`
Expand Down

0 comments on commit 84ecf01

Please sign in to comment.