UNPKG

dressed

Version:

A sleek, serverless-ready Discord bot framework.

27 lines (26 loc) 1.5 kB
import type { RESTGetAPIEntitlementResult, RESTGetAPIEntitlementsQuery, RESTGetAPIEntitlementsResult, RESTPostAPIEntitlementJSONBody, RESTPostAPIEntitlementResult, Snowflake } from "discord-api-types/v10"; /** * Returns all entitlements for the app, active and expired. * @param options Optional parameters for the request */ export declare function listEntitlements(options?: RESTGetAPIEntitlementsQuery): Promise<RESTGetAPIEntitlementsResult>; /** * Returns an entitlements. * @param entitlement The entitlement to get */ export declare function getEntitlement(entitlement: Snowflake): Promise<RESTGetAPIEntitlementResult>; /** * For One-Time Purchase consumable SKUs, marks a given entitlement for the user as consumed. * @param entitlement The entitlement to consume */ export declare function consumeEntitlement(entitlement: Snowflake): Promise<void>; /** * Creates a test entitlement to a given SKU for a given guild or user. Discord will act as though that user or guild has entitlement to your premium offering. * @param entitlement The entitlement to consume */ export declare function createTestEntitlement(data: RESTPostAPIEntitlementJSONBody): Promise<RESTPostAPIEntitlementResult>; /** * Deletes a currently-active test entitlement. Discord will act as though that user or guild no longer has entitlement to your premium offering. * @param entitlement The entitlement to delete */ export declare function deleteTestEntitlement(entitlement: Snowflake): Promise<void>;