mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-02 00:40:07 +00:00
fix(types)!: Rename CreateEntitlement to CreateTestEntitlement (#4346)
This commit is contained in:
@@ -10,7 +10,6 @@ import type {
|
||||
CreateApplicationEmoji,
|
||||
CreateAutoModerationRuleOptions,
|
||||
CreateChannelInvite,
|
||||
CreateEntitlement,
|
||||
CreateForumPostWithMessage,
|
||||
CreateGlobalApplicationCommandOptions,
|
||||
CreateGuildApplicationCommandOptions,
|
||||
@@ -26,6 +25,7 @@ import type {
|
||||
CreateScheduledEvent,
|
||||
CreateStageInstance,
|
||||
CreateTemplate,
|
||||
CreateTestEntitlement,
|
||||
CreateWebhook,
|
||||
DeleteWebhookMessageOptions,
|
||||
DiscordAccessTokenResponse,
|
||||
@@ -1168,7 +1168,10 @@ export type BotHelpers<TProps extends TransformersDesiredProperties, TBehavior e
|
||||
) => Promise<SetupDesiredProps<GuildOnboarding, TProps, TBehavior>>
|
||||
listEntitlements: (applicationId: BigString, options?: GetEntitlements) => Promise<SetupDesiredProps<Entitlement, TProps, TBehavior>[]>
|
||||
getEntitlement: (applicationId: BigString, entitlementId: BigString) => Promise<SetupDesiredProps<Entitlement, TProps, TBehavior>>
|
||||
createTestEntitlement: (applicationId: BigString, body: CreateEntitlement) => Promise<Partial<SetupDesiredProps<Entitlement, TProps, TBehavior>>>
|
||||
createTestEntitlement: (
|
||||
applicationId: BigString,
|
||||
body: CreateTestEntitlement,
|
||||
) => Promise<Partial<SetupDesiredProps<Entitlement, TProps, TBehavior>>>
|
||||
deleteTestEntitlement: (applicationId: BigString, entitlementId: BigString) => Promise<void>
|
||||
listSkus: (applicationId: BigString) => Promise<SetupDesiredProps<Sku, TProps, TBehavior>[]>
|
||||
listSubscriptions: (skuId: BigString, options?: ListSkuSubscriptionsOptions) => Promise<SetupDesiredProps<Subscription, TProps, TBehavior>[]>
|
||||
|
||||
@@ -10,7 +10,6 @@ import type {
|
||||
CreateApplicationEmoji,
|
||||
CreateAutoModerationRuleOptions,
|
||||
CreateChannelInvite,
|
||||
CreateEntitlement,
|
||||
CreateForumPostWithMessage,
|
||||
CreateGlobalApplicationCommandOptions,
|
||||
CreateGuildApplicationCommandOptions,
|
||||
@@ -26,6 +25,7 @@ import type {
|
||||
CreateScheduledEvent,
|
||||
CreateStageInstance,
|
||||
CreateTemplate,
|
||||
CreateTestEntitlement,
|
||||
CreateWebhook,
|
||||
DeleteWebhookMessageOptions,
|
||||
DiscordAccessTokenResponse,
|
||||
@@ -2987,7 +2987,7 @@ export interface RestManager {
|
||||
* This endpoint returns a partial entitlement object.
|
||||
* It will not contain subscription_id, starts_at, or ends_at, as it's valid in perpetuity.
|
||||
*/
|
||||
createTestEntitlement: (applicationId: BigString, body: CreateEntitlement) => Promise<Partial<Camelize<DiscordEntitlement>>>
|
||||
createTestEntitlement: (applicationId: BigString, body: CreateTestEntitlement) => Promise<Partial<Camelize<DiscordEntitlement>>>
|
||||
/**
|
||||
* Deletes a currently-active test entitlement. Discord will act as though that user or guild no longer has entitlement to your premium offering.
|
||||
*
|
||||
|
||||
@@ -22,9 +22,8 @@ export interface GetEntitlements {
|
||||
excludeDeleted?: boolean
|
||||
}
|
||||
|
||||
// TODO: This should provably get renamed to CreateTestEntitlement
|
||||
/** https://discord.com/developers/docs/monetization/entitlements#create-test-entitlement-json-params */
|
||||
export interface CreateEntitlement {
|
||||
export interface CreateTestEntitlement {
|
||||
/** ID of the SKU to grant the entitlement to */
|
||||
skuId: BigString
|
||||
/** ID of the guild or user to grant the entitlement to */
|
||||
|
||||
Reference in New Issue
Block a user