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