MonetizationShorter
High level helper around the monetization endpoints. SKU routes live in two places: the plain list under the current application and the subscription lookups under each SKU. This shorter keeps that split in one spot and returns structures instead of raw payloads. https://docs.discord.com/developers/resources/sku https://docs.discord.com/developers/resources/subscription
Signature
export declare class MonetizationShorter extends BaseShorterProperties
0No properties.
Methods
4Methods
listSKUs(): Promise<SKUStructure[]>;Lists every SKU for the current application. Discord returns both rows for subscription offerings here, the type 6 group row plus the usable type 5 row. https://docs.discord.com/developers/resources/sku#list-skus
fetchSKU(skuId: string): Promise<SKUStructure>;Fetches one SKU from the list endpoint. Discord has no get-one-SKU route, so this lists and picks the match. It throws when the id is not part of this application. https://docs.discord.com/developers/resources/sku#list-skus
subscriptions(skuId: string, query?: RESTGetAPISKUSubscriptionsQuery): Promise<SubscriptionStructure[]>;Lists subscriptions containing a SKU. Discord wants a user_id query except for OAuth calls and caps limit at 1-100 with a default of 50. This checks limit early so a typo fails before the request leaves. https://docs.discord.com/developers/resources/subscription#list-sku-subscriptions
fetchSubscription(skuId: string, subscriptionId: string): Promise<SubscriptionStructure>;Gets one subscription by id. https://docs.discord.com/developers/resources/subscription#get-sku-subscription