Socket
Socket
Sign inDemoInstall

discord-api-types

Package Overview
Dependencies
Maintainers
3
Versions
949
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

discord-api-types - npm Package Compare versions

Comparing version 0.37.100-next.d1e64ee.1725549840 to 0.37.100-next.d3b5187.1725552092

3

gateway/v10.js

@@ -259,4 +259,7 @@ "use strict";

GatewayDispatchEvents["EntitlementDelete"] = "ENTITLEMENT_DELETE";
GatewayDispatchEvents["SubscriptionCreate"] = "SUBSCRIPTION_CREATE";
GatewayDispatchEvents["SubscriptionUpdate"] = "SUBSCRIPTION_UPDATE";
GatewayDispatchEvents["SubscriptionDelete"] = "SUBSCRIPTION_DELETE";
})(GatewayDispatchEvents || (exports.GatewayDispatchEvents = GatewayDispatchEvents = {}));
// #endregion Shared
//# sourceMappingURL=v10.js.map

@@ -258,4 +258,7 @@ "use strict";

GatewayDispatchEvents["EntitlementDelete"] = "ENTITLEMENT_DELETE";
GatewayDispatchEvents["SubscriptionCreate"] = "SUBSCRIPTION_CREATE";
GatewayDispatchEvents["SubscriptionUpdate"] = "SUBSCRIPTION_UPDATE";
GatewayDispatchEvents["SubscriptionDelete"] = "SUBSCRIPTION_DELETE";
})(GatewayDispatchEvents || (exports.GatewayDispatchEvents = GatewayDispatchEvents = {}));
// #endregion Shared
//# sourceMappingURL=v9.js.map

@@ -91,3 +91,15 @@ /**

readonly StyledTimestamp: RegExp;
/**
* Regular expression for matching a guild navigation mention
*
* The `type` group property is present on the `exec` result of this expression
*/
readonly GuildNavigation: RegExp;
/**
* Regular expression for matching a linked role mention
*
* The `id` group property is present on the `exec` result of this expression
*/
readonly LinkedRole: RegExp;
};
//# sourceMappingURL=globals.d.ts.map

@@ -87,2 +87,14 @@ "use strict";

StyledTimestamp: /<t:(?<timestamp>-?\d{1,13}):(?<style>[DFRTdft])>/,
/**
* Regular expression for matching a guild navigation mention
*
* The `type` group property is present on the `exec` result of this expression
*/
GuildNavigation: /<id:(?<type>customize|browse|guide|linked-roles)>/,
/**
* Regular expression for matching a linked role mention
*
* The `id` group property is present on the `exec` result of this expression
*/
LinkedRole: /<id:linked-roles:(?<id>\d{17,20})>/,
};

@@ -89,0 +101,0 @@ /**

2

package.json
{
"name": "discord-api-types",
"version": "0.37.100-next.d1e64ee.1725549840",
"version": "0.37.100-next.d3b5187.1725552092",
"description": "Discord API typings that are kept up to date for use in bot library creation.",

@@ -5,0 +5,0 @@ "homepage": "https://discord-api-types.dev",

@@ -92,2 +92,9 @@ import type { Permissions, Snowflake } from '../../../globals';

version: Snowflake;
/**
* Determines whether the interaction is handled by the app's interactions handler or by Discord
*
* @remarks
* This is only available for {@link ApplicationCommandType.PrimaryEntryPoint} commands
*/
handler?: EntryPointCommandHandlerType;
}

@@ -98,5 +105,18 @@ /**

export declare enum ApplicationCommandType {
/**
* Slash commands; a text-based command that shows up when a user types `/`
*/
ChatInput = 1,
/**
* A UI-based command that shows up when you right click or tap on a user
*/
User = 2,
Message = 3
/**
* A UI-based command that shows up when you right click or tap on a message
*/
Message = 3,
/**
* A UI-based command that represents the primary way to invoke an app's Activity
*/
PrimaryEntryPoint = 4
}

@@ -134,2 +154,16 @@ /**

/**
* https://discord.com/developers/docs/interactions/application-commands#application-command-object-entry-point-command-handler-types
*/
export declare enum EntryPointCommandHandlerType {
/**
* The app handles the interaction using an interaction token
*/
AppHandler = 1,
/**
* Discord handles the interaction by launching an Activity and sending a follow-up message without coordinating with
* the app
*/
DiscordLaunchActivity = 2
}
/**
* https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data

@@ -136,0 +170,0 @@ */

@@ -17,3 +17,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.InteractionContextType = exports.ApplicationIntegrationType = exports.ApplicationCommandType = void 0;
exports.EntryPointCommandHandlerType = exports.InteractionContextType = exports.ApplicationIntegrationType = exports.ApplicationCommandType = void 0;
__exportStar(require("./_applicationCommands/chatInput"), exports);

@@ -27,5 +27,18 @@ __exportStar(require("./_applicationCommands/contextMenu"), exports);

(function (ApplicationCommandType) {
/**
* Slash commands; a text-based command that shows up when a user types `/`
*/
ApplicationCommandType[ApplicationCommandType["ChatInput"] = 1] = "ChatInput";
/**
* A UI-based command that shows up when you right click or tap on a user
*/
ApplicationCommandType[ApplicationCommandType["User"] = 2] = "User";
/**
* A UI-based command that shows up when you right click or tap on a message
*/
ApplicationCommandType[ApplicationCommandType["Message"] = 3] = "Message";
/**
* A UI-based command that represents the primary way to invoke an app's Activity
*/
ApplicationCommandType[ApplicationCommandType["PrimaryEntryPoint"] = 4] = "PrimaryEntryPoint";
})(ApplicationCommandType || (exports.ApplicationCommandType = ApplicationCommandType = {}));

@@ -64,2 +77,17 @@ /**

})(InteractionContextType || (exports.InteractionContextType = InteractionContextType = {}));
/**
* https://discord.com/developers/docs/interactions/application-commands#application-command-object-entry-point-command-handler-types
*/
var EntryPointCommandHandlerType;
(function (EntryPointCommandHandlerType) {
/**
* The app handles the interaction using an interaction token
*/
EntryPointCommandHandlerType[EntryPointCommandHandlerType["AppHandler"] = 1] = "AppHandler";
/**
* Discord handles the interaction by launching an Activity and sending a follow-up message without coordinating with
* the app
*/
EntryPointCommandHandlerType[EntryPointCommandHandlerType["DiscordLaunchActivity"] = 2] = "DiscordLaunchActivity";
})(EntryPointCommandHandlerType || (exports.EntryPointCommandHandlerType = EntryPointCommandHandlerType = {}));
//# sourceMappingURL=applicationCommands.js.map

@@ -85,3 +85,10 @@ import type { RESTPostAPIWebhookWithTokenJSONBody } from '../../../v10';

*/
PremiumRequired = 10
PremiumRequired = 10,
/**
* Launch the Activity associated with the app.
*
* @remarks
* Only available for apps with Activities enabled
*/
LaunchActivity = 12
}

@@ -88,0 +95,0 @@ /**

@@ -54,3 +54,10 @@ "use strict";

InteractionResponseType[InteractionResponseType["PremiumRequired"] = 10] = "PremiumRequired";
/**
* Launch the Activity associated with the app.
*
* @remarks
* Only available for apps with Activities enabled
*/
InteractionResponseType[InteractionResponseType["LaunchActivity"] = 12] = "LaunchActivity";
})(InteractionResponseType || (exports.InteractionResponseType = InteractionResponseType = {}));
//# sourceMappingURL=responses.js.map

@@ -728,3 +728,5 @@ /**

GuildIncidentReportRaid = 38,
GuildIncidentReportFalseAlarm = 39
GuildIncidentReportFalseAlarm = 39,
PurchaseNotification = 44,
PollResult = 46
}

@@ -1186,3 +1188,7 @@ /**

*/
AutoModerationMessage = "auto_moderation_message"
AutoModerationMessage = "auto_moderation_message",
/**
* Poll result embed
*/
PollResult = "poll_result"
}

@@ -1757,2 +1763,9 @@ /**

* Id of the origin message's guild
*
* @deprecated This field doesn't accurately reflect the Discord API as it doesn't exist nor is documented and will
* be removed in the next major version.
*
* It was added in {@link https://github.com/discord/discord-api-docs/pull/6833/commits/d18f72d06d62e6b1d51ca2c1ef308ddc29ff3348 | d18f72d}
* but was later removed before the PR ({@link https://github.com/discord/discord-api-docs/pull/6833 | discord-api-docs#6833}) was merged.
* See {@link https://github.com/discordjs/discord-api-types/pull/1084 | discord-api-types#1084} for more information.
*/

@@ -1814,3 +1827,3 @@ guild_id?: Snowflake;

export type APIModalActionRowComponent = APITextInputComponent;
export type APIMessageSnapshotFields = Pick<APIMessage, 'attachments' | 'content' | 'edited_timestamp' | 'embeds' | 'flags' | 'mention_roles' | 'mentions' | 'timestamp' | 'type'>;
export type APIMessageSnapshotFields = Pick<APIMessage, 'attachments' | 'components' | 'content' | 'edited_timestamp' | 'embeds' | 'flags' | 'mention_roles' | 'mentions' | 'sticker_items' | 'stickers' | 'timestamp' | 'type'>;
//# sourceMappingURL=channel.d.ts.map

@@ -190,2 +190,4 @@ "use strict";

MessageType[MessageType["GuildIncidentReportFalseAlarm"] = 39] = "GuildIncidentReportFalseAlarm";
MessageType[MessageType["PurchaseNotification"] = 44] = "PurchaseNotification";
MessageType[MessageType["PollResult"] = 46] = "PollResult";
})(MessageType || (exports.MessageType = MessageType = {}));

@@ -338,2 +340,6 @@ /**

EmbedType["AutoModerationMessage"] = "auto_moderation_message";
/**
* Poll result embed
*/
EmbedType["PollResult"] = "poll_result";
})(EmbedType || (exports.EmbedType = EmbedType = {}));

@@ -340,0 +346,0 @@ /**

@@ -133,2 +133,5 @@ import type { Snowflake } from '../../globals';

}
/**
* https://discord.com/developers/docs/resources/sku#sku-object-sku-types
*/
export declare enum SKUType {

@@ -152,2 +155,60 @@ /**

}
/**
* https://discord.com/developers/docs/resources/subscription#subscription-object
*/
export interface APISubscription {
/**
* ID of the subscription
*/
id: Snowflake;
/**
* ID of the user who is subscribed
*/
user_id: Snowflake;
/**
* List of SKUs subscribed to
*/
sku_ids: Snowflake[];
/**
* List of entitlements granted for this subscription
*/
entitlement_ids: Snowflake[];
/**
* Start of the current subscription period
*/
current_period_start: string;
/**
* End of the current subscription period
*/
current_period_end: string;
/**
* Current status of the subscription
*/
status: SubscriptionStatus;
/**
* When the subscription was canceled
*/
canceled_at: string | null;
/**
* ISO3166-1 alpha-2 country code of the payment source used to purchase the subscription. Missing unless queried with a private OAuth scope.
*/
country?: string;
}
/**
* https://discord.com/developers/docs/resources/subscription#subscription-statuses
*/
export declare enum SubscriptionStatus {
/**
* Subscription is active and scheduled to renew.
*/
Active = 0,
/**
* Subscription is active but will not renew.
*/
Ending = 1,
/**
* Subscription is inactive and not being charged.
*/
Inactive = 2
}
//# sourceMappingURL=monetization.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SKUType = exports.SKUFlags = exports.EntitlementType = void 0;
exports.SubscriptionStatus = exports.SKUType = exports.SKUFlags = exports.EntitlementType = void 0;
/**

@@ -61,2 +61,5 @@ * https://discord.com/developers/docs/monetization/entitlements#entitlement-object-entitlement-types

})(SKUFlags || (exports.SKUFlags = SKUFlags = {}));
/**
* https://discord.com/developers/docs/resources/sku#sku-object-sku-types
*/
var SKUType;

@@ -81,2 +84,20 @@ (function (SKUType) {

})(SKUType || (exports.SKUType = SKUType = {}));
/**
* https://discord.com/developers/docs/resources/subscription#subscription-statuses
*/
var SubscriptionStatus;
(function (SubscriptionStatus) {
/**
* Subscription is active and scheduled to renew.
*/
SubscriptionStatus[SubscriptionStatus["Active"] = 0] = "Active";
/**
* Subscription is active but will not renew.
*/
SubscriptionStatus[SubscriptionStatus["Ending"] = 1] = "Ending";
/**
* Subscription is inactive and not being charged.
*/
SubscriptionStatus[SubscriptionStatus["Inactive"] = 2] = "Inactive";
})(SubscriptionStatus || (exports.SubscriptionStatus = SubscriptionStatus = {}));
//# sourceMappingURL=monetization.js.map

@@ -270,2 +270,3 @@ /**

export declare enum ConnectionService {
AmazonMusic = "amazon-music",
BattleNet = "battlenet",

@@ -272,0 +273,0 @@ BungieNet = "bungie",

@@ -130,2 +130,3 @@ "use strict";

(function (ConnectionService) {
ConnectionService["AmazonMusic"] = "amazon-music";
ConnectionService["BattleNet"] = "battlenet";

@@ -132,0 +133,0 @@ ConnectionService["BungieNet"] = "bungie";

@@ -92,2 +92,9 @@ import type { Permissions, Snowflake } from '../../../globals';

version: Snowflake;
/**
* Determines whether the interaction is handled by the app's interactions handler or by Discord
*
* @remarks
* This is only available for {@link ApplicationCommandType.PrimaryEntryPoint} commands
*/
handler?: EntryPointCommandHandlerType;
}

@@ -98,5 +105,18 @@ /**

export declare enum ApplicationCommandType {
/**
* Slash commands; a text-based command that shows up when a user types `/`
*/
ChatInput = 1,
/**
* A UI-based command that shows up when you right click or tap on a user
*/
User = 2,
Message = 3
/**
* A UI-based command that shows up when you right click or tap on a message
*/
Message = 3,
/**
* A UI-based command that represents the primary way to invoke an app's Activity
*/
PrimaryEntryPoint = 4
}

@@ -134,2 +154,16 @@ /**

/**
* https://discord.com/developers/docs/interactions/application-commands#application-command-object-entry-point-command-handler-types
*/
export declare enum EntryPointCommandHandlerType {
/**
* The app handles the interaction using an interaction token
*/
AppHandler = 1,
/**
* Discord handles the interaction by launching an Activity and sending a follow-up message without coordinating with
* the app
*/
DiscordLaunchActivity = 2
}
/**
* https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data

@@ -136,0 +170,0 @@ */

@@ -17,3 +17,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.InteractionContextType = exports.ApplicationIntegrationType = exports.ApplicationCommandType = void 0;
exports.EntryPointCommandHandlerType = exports.InteractionContextType = exports.ApplicationIntegrationType = exports.ApplicationCommandType = void 0;
__exportStar(require("./_applicationCommands/chatInput"), exports);

@@ -27,5 +27,18 @@ __exportStar(require("./_applicationCommands/contextMenu"), exports);

(function (ApplicationCommandType) {
/**
* Slash commands; a text-based command that shows up when a user types `/`
*/
ApplicationCommandType[ApplicationCommandType["ChatInput"] = 1] = "ChatInput";
/**
* A UI-based command that shows up when you right click or tap on a user
*/
ApplicationCommandType[ApplicationCommandType["User"] = 2] = "User";
/**
* A UI-based command that shows up when you right click or tap on a message
*/
ApplicationCommandType[ApplicationCommandType["Message"] = 3] = "Message";
/**
* A UI-based command that represents the primary way to invoke an app's Activity
*/
ApplicationCommandType[ApplicationCommandType["PrimaryEntryPoint"] = 4] = "PrimaryEntryPoint";
})(ApplicationCommandType || (exports.ApplicationCommandType = ApplicationCommandType = {}));

@@ -64,2 +77,17 @@ /**

})(InteractionContextType || (exports.InteractionContextType = InteractionContextType = {}));
/**
* https://discord.com/developers/docs/interactions/application-commands#application-command-object-entry-point-command-handler-types
*/
var EntryPointCommandHandlerType;
(function (EntryPointCommandHandlerType) {
/**
* The app handles the interaction using an interaction token
*/
EntryPointCommandHandlerType[EntryPointCommandHandlerType["AppHandler"] = 1] = "AppHandler";
/**
* Discord handles the interaction by launching an Activity and sending a follow-up message without coordinating with
* the app
*/
EntryPointCommandHandlerType[EntryPointCommandHandlerType["DiscordLaunchActivity"] = 2] = "DiscordLaunchActivity";
})(EntryPointCommandHandlerType || (exports.EntryPointCommandHandlerType = EntryPointCommandHandlerType = {}));
//# sourceMappingURL=applicationCommands.js.map

@@ -85,3 +85,10 @@ import type { RESTPostAPIWebhookWithTokenJSONBody } from '../../../v9';

*/
PremiumRequired = 10
PremiumRequired = 10,
/**
* Launch the Activity associated with the app.
*
* @remarks
* Only available for apps with Activities enabled
*/
LaunchActivity = 12
}

@@ -88,0 +95,0 @@ /**

@@ -54,3 +54,10 @@ "use strict";

InteractionResponseType[InteractionResponseType["PremiumRequired"] = 10] = "PremiumRequired";
/**
* Launch the Activity associated with the app.
*
* @remarks
* Only available for apps with Activities enabled
*/
InteractionResponseType[InteractionResponseType["LaunchActivity"] = 12] = "LaunchActivity";
})(InteractionResponseType || (exports.InteractionResponseType = InteractionResponseType = {}));
//# sourceMappingURL=responses.js.map

@@ -714,3 +714,5 @@ /**

GuildIncidentReportRaid = 38,
GuildIncidentReportFalseAlarm = 39
GuildIncidentReportFalseAlarm = 39,
PurchaseNotification = 44,
PollResult = 46
}

@@ -1155,3 +1157,7 @@ /**

*/
AutoModerationMessage = "auto_moderation_message"
AutoModerationMessage = "auto_moderation_message",
/**
* Poll result embed
*/
PollResult = "poll_result"
}

@@ -1726,2 +1732,9 @@ /**

* Id of the origin message's guild
*
* @deprecated This field doesn't accurately reflect the Discord API as it doesn't exist nor is documented and will
* be removed in the next major version.
*
* It was added in {@link https://github.com/discord/discord-api-docs/pull/6833/commits/d18f72d06d62e6b1d51ca2c1ef308ddc29ff3348 | d18f72d}
* but was later removed before the PR ({@link https://github.com/discord/discord-api-docs/pull/6833 | discord-api-docs#6833}) was merged.
* See {@link https://github.com/discordjs/discord-api-types/pull/1084 | discord-api-types#1084} for more information.
*/

@@ -1783,3 +1796,3 @@ guild_id?: Snowflake;

export type APIModalActionRowComponent = APITextInputComponent;
export type APIMessageSnapshotFields = Pick<APIMessage, 'attachments' | 'content' | 'edited_timestamp' | 'embeds' | 'flags' | 'mention_roles' | 'mentions' | 'timestamp' | 'type'>;
export type APIMessageSnapshotFields = Pick<APIMessage, 'attachments' | 'components' | 'content' | 'edited_timestamp' | 'embeds' | 'flags' | 'mention_roles' | 'mentions' | 'sticker_items' | 'stickers' | 'timestamp' | 'type'>;
//# sourceMappingURL=channel.d.ts.map

@@ -190,2 +190,4 @@ "use strict";

MessageType[MessageType["GuildIncidentReportFalseAlarm"] = 39] = "GuildIncidentReportFalseAlarm";
MessageType[MessageType["PurchaseNotification"] = 44] = "PurchaseNotification";
MessageType[MessageType["PollResult"] = 46] = "PollResult";
})(MessageType || (exports.MessageType = MessageType = {}));

@@ -338,2 +340,6 @@ /**

EmbedType["AutoModerationMessage"] = "auto_moderation_message";
/**
* Poll result embed
*/
EmbedType["PollResult"] = "poll_result";
})(EmbedType || (exports.EmbedType = EmbedType = {}));

@@ -340,0 +346,0 @@ /**

@@ -133,2 +133,5 @@ import type { Snowflake } from '../../globals';

}
/**
* https://discord.com/developers/docs/resources/sku#sku-object-sku-types
*/
export declare enum SKUType {

@@ -152,2 +155,60 @@ /**

}
/**
* https://discord.com/developers/docs/resources/subscription#subscription-object
*/
export interface APISubscription {
/**
* ID of the subscription
*/
id: Snowflake;
/**
* ID of the user who is subscribed
*/
user_id: Snowflake;
/**
* List of SKUs subscribed to
*/
sku_ids: Snowflake[];
/**
* List of entitlements granted for this subscription
*/
entitlement_ids: Snowflake[];
/**
* Start of the current subscription period
*/
current_period_start: string;
/**
* End of the current subscription period
*/
current_period_end: string;
/**
* Current status of the subscription
*/
status: SubscriptionStatus;
/**
* When the subscription was canceled
*/
canceled_at: string | null;
/**
* ISO3166-1 alpha-2 country code of the payment source used to purchase the subscription. Missing unless queried with a private OAuth scope.
*/
country?: string;
}
/**
* https://discord.com/developers/docs/resources/subscription#subscription-statuses
*/
export declare enum SubscriptionStatus {
/**
* Subscription is active and scheduled to renew.
*/
Active = 0,
/**
* Subscription is active but will not renew.
*/
Ending = 1,
/**
* Subscription is inactive and not being charged.
*/
Inactive = 2
}
//# sourceMappingURL=monetization.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SKUType = exports.SKUFlags = exports.EntitlementType = void 0;
exports.SubscriptionStatus = exports.SKUType = exports.SKUFlags = exports.EntitlementType = void 0;
/**

@@ -61,2 +61,5 @@ * https://discord.com/developers/docs/monetization/entitlements#entitlement-object-entitlement-types

})(SKUFlags || (exports.SKUFlags = SKUFlags = {}));
/**
* https://discord.com/developers/docs/resources/sku#sku-object-sku-types
*/
var SKUType;

@@ -81,2 +84,20 @@ (function (SKUType) {

})(SKUType || (exports.SKUType = SKUType = {}));
/**
* https://discord.com/developers/docs/resources/subscription#subscription-statuses
*/
var SubscriptionStatus;
(function (SubscriptionStatus) {
/**
* Subscription is active and scheduled to renew.
*/
SubscriptionStatus[SubscriptionStatus["Active"] = 0] = "Active";
/**
* Subscription is active but will not renew.
*/
SubscriptionStatus[SubscriptionStatus["Ending"] = 1] = "Ending";
/**
* Subscription is inactive and not being charged.
*/
SubscriptionStatus[SubscriptionStatus["Inactive"] = 2] = "Inactive";
})(SubscriptionStatus || (exports.SubscriptionStatus = SubscriptionStatus = {}));
//# sourceMappingURL=monetization.js.map

@@ -270,2 +270,3 @@ /**

export declare enum ConnectionService {
AmazonMusic = "amazon-music",
BattleNet = "battlenet",

@@ -272,0 +273,0 @@ BungieNet = "bungie",

@@ -130,2 +130,3 @@ "use strict";

(function (ConnectionService) {
ConnectionService["AmazonMusic"] = "amazon-music";
ConnectionService["BattleNet"] = "battlenet";

@@ -132,0 +133,0 @@ ConnectionService["BungieNet"] = "bungie";

@@ -664,2 +664,12 @@ import type { Snowflake } from '../../globals';

applicationEmoji(applicationId: Snowflake, emojiId: Snowflake): `/applications/${string}/emojis/${string}`;
/**
* Route for:
* - GET `/skus/{sku.id}/subscriptions`
*/
skuSubscriptions(skuId: Snowflake): `/skus/${string}/subscriptions`;
/**
* Route for:
* - GET `/skus/{sku.id}/subscriptions/${subscription.id}`
*/
skuSubscription(skuId: Snowflake, subscriptionId: Snowflake): `/skus/${string}/subscriptions/${string}`;
};

@@ -666,0 +676,0 @@ export declare const StickerPackApplicationId = "710982414301790216";

@@ -902,2 +902,16 @@ "use strict";

},
/**
* Route for:
* - GET `/skus/{sku.id}/subscriptions`
*/
skuSubscriptions(skuId) {
return `/skus/${skuId}/subscriptions`;
},
/**
* Route for:
* - GET `/skus/{sku.id}/subscriptions/${subscription.id}`
*/
skuSubscription(skuId, subscriptionId) {
return `/skus/${skuId}/subscriptions/${subscriptionId}`;
},
};

@@ -904,0 +918,0 @@ exports.StickerPackApplicationId = '710982414301790216';

@@ -1,2 +0,3 @@

import type { APIApplicationCommand, APIApplicationCommandPermission, APIGuildApplicationCommandPermissions, APIInteractionResponse, APIInteractionResponseCallbackData, ApplicationCommandType } from '../../payloads/v10/index';
import type { Snowflake } from '../../globals';
import type { APIApplicationCommand, APIApplicationCommandPermission, APIGuildApplicationCommandPermissions, APIInteractionResponse, APIInteractionResponseCallbackData, ApplicationCommandType, InteractionResponseType, APIMessage, InteractionType } from '../../payloads/v10/index';
import type { AddUndefinedToPossiblyUndefinedPropertiesOfInterface, NonNullableFields, StrictPartial } from '../../utils/internals';

@@ -105,2 +106,11 @@ import type { RESTDeleteAPIWebhookWithTokenMessageResult, RESTGetAPIWebhookWithTokenMessageResult, RESTPatchAPIWebhookWithTokenMessageFormDataBody, RESTPatchAPIWebhookWithTokenMessageJSONBody, RESTPatchAPIWebhookWithTokenMessageResult, RESTPostAPIWebhookWithTokenWaitResult } from './webhook';

*/
export interface RESTPostAPIInteractionCallbackQuery {
/**
* Whether to include a interaction callback response as the response instead of a 204
*/
with_response?: boolean;
}
/**
* https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response
*/
export type RESTPostAPIInteractionCallbackFormDataBody = (Record<`files[${bigint}]`, unknown> & {

@@ -113,2 +123,81 @@ /**

/**
* https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response
*/
export type RESTPostAPIInteractionCallbackResult = never;
/**
* https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-callback-interaction-callback-response-object
*/
export interface RESTPostAPIInteractionCallbackWithResponseResult {
/**
* The interaction object associated with the interaction
*/
interaction: RESTAPIInteractionCallbackObject;
/**
* The resource that was created by the interaction response
*/
resource?: RESTAPIInteractionCallbackResourceObject;
}
/**
* https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-callback-interaction-callback-object
*/
export interface RESTAPIInteractionCallbackObject {
/**
* ID of the interaction
*/
id: Snowflake;
/**
* Interaction type
*/
type: InteractionType;
/**
* Instance ID of the Activity if one was launched or joined
*/
activity_instance_id?: string;
/**
* ID of the message that was created by the interaction
*/
response_message_id?: Snowflake;
/**
* Whether or not the message is in a loading state
*/
response_message_loading?: boolean;
/**
* Whether or not the response message was ephemeral
*/
response_message_ephemeral?: boolean;
}
/**
* https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-callback-interaction-callback-resource-object
*/
export interface RESTAPIInteractionCallbackResourceObject {
/**
* Interaction callback type
*/
type: InteractionResponseType;
/**
* Represents the Activity launched by this interaction
*
* @remarks
* Only present if `type` is {@link InteractionResponseType.LaunchActivity}
*/
activity_instance?: RESTAPIInteractionCallbackActivityInstanceResource;
/**
* Message created by the interaction
*
* @remarks
* Only present if `type` is {@link InteractionResponseType.ChannelMessageWithSource}
* or {@link InteractionResponseType.UpdateMessage}
*/
message?: APIMessage;
}
/**
* https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-callback-interaction-callback-activity-instance-resource
*/
export interface RESTAPIInteractionCallbackActivityInstanceResource {
/**
* Instance ID of the Activity if one was launched or joined.
*/
id: string;
}
/**
* https://discord.com/developers/docs/interactions/receiving-and-responding#get-original-interaction-response

@@ -115,0 +204,0 @@ */

import type { Snowflake } from '../../globals';
import type { APIEntitlement, APISKU } from '../../v10';
import type { APIEntitlement, APISKU, APISubscription } from '../../v10';
/**
* https://discord.com/developers/docs/monetization/entitlements#list-entitlements
* https://discord.com/developers/docs/resources/entitlement#list-entitlements
*/

@@ -40,7 +40,7 @@ export interface RESTGetAPIEntitlementsQuery {

/**
* https://discord.com/developers/docs/monetization/entitlements#list-entitlements
* https://discord.com/developers/docs/resources/entitlement#list-entitlements
*/
export type RESTGetAPIEntitlementsResult = APIEntitlement[];
/**
* https://discord.com/developers/docs/monetization/entitlements#create-test-entitlement
* https://discord.com/developers/docs/resources/entitlement#create-test-entitlement
*/

@@ -66,7 +66,7 @@ export interface RESTPostAPIEntitlementJSONBody {

/**
* https://discord.com/developers/docs/monetization/entitlements#create-test-entitlement
* https://discord.com/developers/docs/resources/entitlement#create-test-entitlement
*/
export type RESTPostAPIEntitlementResult = Partial<Omit<APIEntitlement, 'ends_at' | 'starts_at'>>;
/**
* https://discord.com/developers/docs/monetization/entitlements#create-test-entitlement
* https://discord.com/developers/docs/resources/entitlement#create-test-entitlement
*/

@@ -78,13 +78,44 @@ export declare enum EntitlementOwnerType {

/**
* https://discord.com/developers/docs/monetization/entitlements#delete-test-entitlement
* https://discord.com/developers/docs/resources/entitlement#delete-test-entitlement
*/
export type RESTDeleteAPIEntitlementResult = never;
/**
* https://discord.com/developers/docs/monetization/skus#list-skus
* https://discord.com/developers/docs/resources/sku#list-skus
*/
export type RESTGetAPISKUsResult = APISKU[];
/**
* https://discord.com/developers/docs/monetization/entitlements#consume-an-entitlement
* https://discord.com/developers/docs/resources/entitlement#consume-an-entitlement
*/
export type RESTPostAPIEntitlementConsumeResult = never;
/**
* https://discord.com/developers/docs/resources/subscription#query-string-params
*/
export interface RESTGetAPISKUSubscriptionsQuery {
/**
* List subscriptions before this ID
*/
before?: Snowflake | undefined;
/**
* List subscriptions after this ID
*/
after?: Snowflake | undefined;
/**
* Number of subscriptions to return (1-100)
*
* @default 50
*/
limit?: number | undefined;
/**
* User ID for which to return subscriptions. Required except for OAuth queries.
*/
user_id?: Snowflake | undefined;
}
/**
* https://discord.com/developers/docs/resources/subscription#list-sku-subscriptions
*/
export type RESTGetAPISKUSubscriptionsResult = APISubscription[];
/**
* https://discord.com/developers/docs/resources/subscription#get-sku-subscription
*/
export type RESTGetAPISKUSubscriptionResult = APISubscription;
//# sourceMappingURL=monetization.d.ts.map

@@ -5,3 +5,3 @@ "use strict";

/**
* https://discord.com/developers/docs/monetization/entitlements#create-test-entitlement
* https://discord.com/developers/docs/resources/entitlement#create-test-entitlement
*/

@@ -8,0 +8,0 @@ var EntitlementOwnerType;

@@ -233,2 +233,9 @@ import type { Snowflake } from '../../globals';

attachments?: RESTAPIAttachment[] | undefined;
/**
* A poll!
*
* @remarks
* Polls can only be added when editing a deferred interaction response.
*/
poll?: RESTAPIPoll | undefined;
};

@@ -235,0 +242,0 @@ /**

@@ -666,2 +666,12 @@ import type { Snowflake } from '../../globals';

applicationEmoji(applicationId: Snowflake, emojiId: Snowflake): `/applications/${string}/emojis/${string}`;
/**
* Route for:
* - GET `/skus/{sku.id}/subscriptions`
*/
skuSubscriptions(skuId: Snowflake): `/skus/${string}/subscriptions`;
/**
* Route for:
* - GET `/skus/{sku.id}/subscriptions/${subscription.id}`
*/
skuSubscription(skuId: Snowflake, subscriptionId: Snowflake): `/skus/${string}/subscriptions/${string}`;
};

@@ -668,0 +678,0 @@ export declare const StickerPackApplicationId = "710982414301790216";

@@ -909,2 +909,16 @@ "use strict";

},
/**
* Route for:
* - GET `/skus/{sku.id}/subscriptions`
*/
skuSubscriptions(skuId) {
return `/skus/${skuId}/subscriptions`;
},
/**
* Route for:
* - GET `/skus/{sku.id}/subscriptions/${subscription.id}`
*/
skuSubscription(skuId, subscriptionId) {
return `/skus/${skuId}/subscriptions/${subscriptionId}`;
},
};

@@ -911,0 +925,0 @@ exports.StickerPackApplicationId = '710982414301790216';

@@ -1,2 +0,3 @@

import type { APIApplicationCommand, APIApplicationCommandPermission, APIGuildApplicationCommandPermissions, APIInteractionResponse, APIInteractionResponseCallbackData, ApplicationCommandType } from '../../payloads/v9/index';
import type { Snowflake } from '../../globals';
import type { APIApplicationCommand, APIApplicationCommandPermission, APIGuildApplicationCommandPermissions, APIInteractionResponse, APIInteractionResponseCallbackData, ApplicationCommandType, InteractionResponseType, APIMessage, InteractionType } from '../../payloads/v9/index';
import type { AddUndefinedToPossiblyUndefinedPropertiesOfInterface, NonNullableFields, StrictPartial } from '../../utils/internals';

@@ -105,2 +106,11 @@ import type { RESTDeleteAPIWebhookWithTokenMessageResult, RESTGetAPIWebhookWithTokenMessageResult, RESTPatchAPIWebhookWithTokenMessageFormDataBody, RESTPatchAPIWebhookWithTokenMessageJSONBody, RESTPatchAPIWebhookWithTokenMessageResult, RESTPostAPIWebhookWithTokenWaitResult } from './webhook';

*/
export interface RESTPostAPIInteractionCallbackQuery {
/**
* Whether to include a interaction callback response as the response instead of a 204
*/
with_response?: boolean;
}
/**
* https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response
*/
export type RESTPostAPIInteractionCallbackFormDataBody = (Record<`files[${bigint}]`, unknown> & {

@@ -113,2 +123,81 @@ /**

/**
* https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response
*/
export type RESTPostAPIInteractionCallbackResult = never;
/**
* https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-callback-interaction-callback-response-object
*/
export interface RESTPostAPIInteractionCallbackWithResponseResult {
/**
* The interaction object associated with the interaction
*/
interaction: RESTAPIInteractionCallbackObject;
/**
* The resource that was created by the interaction response
*/
resource?: RESTAPIInteractionCallbackResourceObject;
}
/**
* https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-callback-interaction-callback-object
*/
export interface RESTAPIInteractionCallbackObject {
/**
* ID of the interaction
*/
id: Snowflake;
/**
* Interaction type
*/
type: InteractionType;
/**
* Instance ID of the Activity if one was launched or joined
*/
activity_instance_id?: string;
/**
* ID of the message that was created by the interaction
*/
response_message_id?: Snowflake;
/**
* Whether or not the message is in a loading state
*/
response_message_loading?: boolean;
/**
* Whether or not the response message was ephemeral
*/
response_message_ephemeral?: boolean;
}
/**
* https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-callback-interaction-callback-resource-object
*/
export interface RESTAPIInteractionCallbackResourceObject {
/**
* Interaction callback type
*/
type: InteractionResponseType;
/**
* Represents the Activity launched by this interaction
*
* @remarks
* Only present if `type` is {@link InteractionResponseType.LaunchActivity}
*/
activity_instance?: RESTAPIInteractionCallbackActivityInstanceResource;
/**
* Message created by the interaction
*
* @remarks
* Only present if `type` is {@link InteractionResponseType.ChannelMessageWithSource}
* or {@link InteractionResponseType.UpdateMessage}
*/
message?: APIMessage;
}
/**
* https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-callback-interaction-callback-activity-instance-resource
*/
export interface RESTAPIInteractionCallbackActivityInstanceResource {
/**
* Instance ID of the Activity if one was launched or joined.
*/
id: string;
}
/**
* https://discord.com/developers/docs/interactions/receiving-and-responding#get-original-interaction-response

@@ -115,0 +204,0 @@ */

import type { Snowflake } from '../../globals';
import type { APIEntitlement, APISKU } from '../../v10';
import type { APIEntitlement, APISKU, APISubscription } from '../../v9';
/**
* https://discord.com/developers/docs/monetization/entitlements#list-entitlements
* https://discord.com/developers/docs/resources/entitlement#list-entitlements
*/

@@ -40,7 +40,7 @@ export interface RESTGetAPIEntitlementsQuery {

/**
* https://discord.com/developers/docs/monetization/entitlements#list-entitlements
* https://discord.com/developers/docs/resources/entitlement#list-entitlements
*/
export type RESTGetAPIEntitlementsResult = APIEntitlement[];
/**
* https://discord.com/developers/docs/monetization/entitlements#create-test-entitlement
* https://discord.com/developers/docs/resources/entitlement#create-test-entitlement
*/

@@ -66,7 +66,7 @@ export interface RESTPostAPIEntitlementJSONBody {

/**
* https://discord.com/developers/docs/monetization/entitlements#create-test-entitlement
* https://discord.com/developers/docs/resources/entitlement#create-test-entitlement
*/
export type RESTPostAPIEntitlementResult = Partial<Omit<APIEntitlement, 'ends_at' | 'starts_at'>>;
/**
* https://discord.com/developers/docs/monetization/entitlements#create-test-entitlement
* https://discord.com/developers/docs/resources/entitlement#create-test-entitlement
*/

@@ -78,13 +78,44 @@ export declare enum EntitlementOwnerType {

/**
* https://discord.com/developers/docs/monetization/entitlements#delete-test-entitlement
* https://discord.com/developers/docs/resources/entitlement#delete-test-entitlement
*/
export type RESTDeleteAPIEntitlementResult = never;
/**
* https://discord.com/developers/docs/monetization/skus#list-skus
* https://discord.com/developers/docs/resources/sku#list-skus
*/
export type RESTGetAPISKUsResult = APISKU[];
/**
* https://discord.com/developers/docs/monetization/entitlements#consume-an-entitlement
* https://discord.com/developers/docs/resources/entitlement#consume-an-entitlement
*/
export type RESTPostAPIEntitlementConsumeResult = never;
/**
* https://discord.com/developers/docs/resources/subscription#query-string-params
*/
export interface RESTGetAPISKUSubscriptionsQuery {
/**
* List subscriptions before this ID
*/
before?: Snowflake | undefined;
/**
* List subscriptions after this ID
*/
after?: Snowflake | undefined;
/**
* Number of subscriptions to return (1-100)
*
* @default 50
*/
limit?: number | undefined;
/**
* User ID for which to return subscriptions. Required except for OAuth queries.
*/
user_id?: Snowflake | undefined;
}
/**
* https://discord.com/developers/docs/resources/subscription#list-sku-subscriptions
*/
export type RESTGetAPISKUSubscriptionsResult = APISubscription[];
/**
* https://discord.com/developers/docs/resources/subscription#get-sku-subscription
*/
export type RESTGetAPISKUSubscriptionResult = APISubscription;
//# sourceMappingURL=monetization.d.ts.map

@@ -5,3 +5,3 @@ "use strict";

/**
* https://discord.com/developers/docs/monetization/entitlements#create-test-entitlement
* https://discord.com/developers/docs/resources/entitlement#create-test-entitlement
*/

@@ -8,0 +8,0 @@ var EntitlementOwnerType;

@@ -233,2 +233,9 @@ import type { Snowflake } from '../../globals';

attachments?: RESTAPIAttachment[] | undefined;
/**
* A poll!
*
* @remarks
* Polls can only be added when editing a deferred interaction response.
*/
poll?: RESTAPIPoll | undefined;
};

@@ -235,0 +242,0 @@ /**

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc