From 84ecf01f15a208e658b62d85bd18ee2f7ceb9cfe Mon Sep 17 00:00:00 2001 From: Jonas Date: Fri, 2 Aug 2024 19:47:13 +0200 Subject: [PATCH] add description to Entitlement struct & type --- entitlement.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/entitlement.go b/entitlement.go index 303d0e7e4..8db894a6d 100644 --- a/entitlement.go +++ b/entitlement.go @@ -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 @@ -16,6 +16,8 @@ const ( EntitlementTypeApplicationSubscription = 8 ) +// Entitlements represent 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"`