Skip to content

Commit

Permalink
feat: remove unstable from stable fields (#1086)
Browse files Browse the repository at this point in the history
  • Loading branch information
almeidx authored Aug 31, 2024
1 parent 2803e8d commit 4b64f84
Show file tree
Hide file tree
Showing 12 changed files with 28 additions and 60 deletions.
14 changes: 5 additions & 9 deletions deno/payloads/v10/_interactions/applicationCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,10 @@ export interface APIApplicationCommand {
nsfw?: boolean;
/**
* Installation context(s) where the command is available, only for globally-scoped commands. Defaults to `GUILD_INSTALL ([0])`
*
* @unstable
*/
integration_types?: ApplicationIntegrationType[];
/**
* Interaction context(s) where the command can be used, only for globally-scoped commands. By default, all interaction context types included for new commands `[0,1,2]`.
*
* @unstable
*/
contexts?: InteractionContextType[] | null;
/**
Expand All @@ -124,11 +120,11 @@ export enum ApplicationIntegrationType {
/**
* App is installable to servers
*/
GuildInstall = 0,
GuildInstall,
/**
* App is installable to users
*/
UserInstall = 1,
UserInstall,
}

/**
Expand All @@ -138,15 +134,15 @@ export enum InteractionContextType {
/**
* Interaction can be used within servers
*/
Guild = 0,
Guild,
/**
* Interaction can be used within DMs with the app's bot user
*/
BotDM = 1,
BotDM,
/**
* Interaction can be used within Group DMs and DMs other than the app's bot user
*/
PrivateChannel = 2,
PrivateChannel,
}

/**
Expand Down
2 changes: 0 additions & 2 deletions deno/payloads/v10/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,6 @@ export interface APIApplication {
install_params?: APIApplicationInstallParams;
/**
* Default scopes and permissions for each supported installation context. Value for each key is an integration type configuration object
*
* @unstable
*/
integration_types_config?: APIApplicationIntegrationTypesConfigMap;
/**
Expand Down
6 changes: 2 additions & 4 deletions deno/payloads/v10/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -669,8 +669,6 @@ export interface APIMessage {
referenced_message?: APIMessage | null;
/**
* Sent if the message is sent as a result of an interaction
*
* @unstable
*/
interaction_metadata?: APIMessageInteractionMetadata;
/**
Expand Down Expand Up @@ -849,11 +847,11 @@ export enum MessageReferenceType {
/**
* A standard reference used by replies
*/
Default = 0,
Default,
/**
* Reference used to point to a message at a point in time
*/
Forward = 1,
Forward,
}

/**
Expand Down
14 changes: 5 additions & 9 deletions deno/payloads/v9/_interactions/applicationCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,10 @@ export interface APIApplicationCommand {
nsfw?: boolean;
/**
* Installation context(s) where the command is available, only for globally-scoped commands. Defaults to `GUILD_INSTALL ([0])`
*
* @unstable
*/
integration_types?: ApplicationIntegrationType[];
/**
* Interaction context(s) where the command can be used, only for globally-scoped commands. By default, all interaction context types included for new commands `[0,1,2]`.
*
* @unstable
*/
contexts?: InteractionContextType[] | null;
/**
Expand All @@ -124,11 +120,11 @@ export enum ApplicationIntegrationType {
/**
* App is installable to servers
*/
GuildInstall = 0,
GuildInstall,
/**
* App is installable to users
*/
UserInstall = 1,
UserInstall,
}

/**
Expand All @@ -138,15 +134,15 @@ export enum InteractionContextType {
/**
* Interaction can be used within servers
*/
Guild = 0,
Guild,
/**
* Interaction can be used within DMs with the app's bot user
*/
BotDM = 1,
BotDM,
/**
* Interaction can be used within Group DMs and DMs other than the app's bot user
*/
PrivateChannel = 2,
PrivateChannel,
}

/**
Expand Down
2 changes: 0 additions & 2 deletions deno/payloads/v9/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,6 @@ export interface APIApplication {
install_params?: APIApplicationInstallParams;
/**
* Default scopes and permissions for each supported installation context. Value for each key is an integration type configuration object
*
* @unstable
*/
integration_types_config?: APIApplicationIntegrationTypesConfigMap;
/**
Expand Down
6 changes: 2 additions & 4 deletions deno/payloads/v9/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -661,8 +661,6 @@ export interface APIMessage {
referenced_message?: APIMessage | null;
/**
* Sent if the message is sent as a result of an interaction
*
* @unstable
*/
interaction_metadata?: APIMessageInteractionMetadata;
/**
Expand Down Expand Up @@ -834,11 +832,11 @@ export enum MessageReferenceType {
/**
* A standard reference used by replies
*/
Default = 0,
Default,
/**
* Reference used to point to a message at a point in time
*/
Forward = 1,
Forward,
}

/**
Expand Down
14 changes: 5 additions & 9 deletions payloads/v10/_interactions/applicationCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,10 @@ export interface APIApplicationCommand {
nsfw?: boolean;
/**
* Installation context(s) where the command is available, only for globally-scoped commands. Defaults to `GUILD_INSTALL ([0])`
*
* @unstable
*/
integration_types?: ApplicationIntegrationType[];
/**
* Interaction context(s) where the command can be used, only for globally-scoped commands. By default, all interaction context types included for new commands `[0,1,2]`.
*
* @unstable
*/
contexts?: InteractionContextType[] | null;
/**
Expand All @@ -124,11 +120,11 @@ export enum ApplicationIntegrationType {
/**
* App is installable to servers
*/
GuildInstall = 0,
GuildInstall,
/**
* App is installable to users
*/
UserInstall = 1,
UserInstall,
}

/**
Expand All @@ -138,15 +134,15 @@ export enum InteractionContextType {
/**
* Interaction can be used within servers
*/
Guild = 0,
Guild,
/**
* Interaction can be used within DMs with the app's bot user
*/
BotDM = 1,
BotDM,
/**
* Interaction can be used within Group DMs and DMs other than the app's bot user
*/
PrivateChannel = 2,
PrivateChannel,
}

/**
Expand Down
2 changes: 0 additions & 2 deletions payloads/v10/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,6 @@ export interface APIApplication {
install_params?: APIApplicationInstallParams;
/**
* Default scopes and permissions for each supported installation context. Value for each key is an integration type configuration object
*
* @unstable
*/
integration_types_config?: APIApplicationIntegrationTypesConfigMap;
/**
Expand Down
6 changes: 2 additions & 4 deletions payloads/v10/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -669,8 +669,6 @@ export interface APIMessage {
referenced_message?: APIMessage | null;
/**
* Sent if the message is sent as a result of an interaction
*
* @unstable
*/
interaction_metadata?: APIMessageInteractionMetadata;
/**
Expand Down Expand Up @@ -849,11 +847,11 @@ export enum MessageReferenceType {
/**
* A standard reference used by replies
*/
Default = 0,
Default,
/**
* Reference used to point to a message at a point in time
*/
Forward = 1,
Forward,
}

/**
Expand Down
14 changes: 5 additions & 9 deletions payloads/v9/_interactions/applicationCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,10 @@ export interface APIApplicationCommand {
nsfw?: boolean;
/**
* Installation context(s) where the command is available, only for globally-scoped commands. Defaults to `GUILD_INSTALL ([0])`
*
* @unstable
*/
integration_types?: ApplicationIntegrationType[];
/**
* Interaction context(s) where the command can be used, only for globally-scoped commands. By default, all interaction context types included for new commands `[0,1,2]`.
*
* @unstable
*/
contexts?: InteractionContextType[] | null;
/**
Expand All @@ -124,11 +120,11 @@ export enum ApplicationIntegrationType {
/**
* App is installable to servers
*/
GuildInstall = 0,
GuildInstall,
/**
* App is installable to users
*/
UserInstall = 1,
UserInstall,
}

/**
Expand All @@ -138,15 +134,15 @@ export enum InteractionContextType {
/**
* Interaction can be used within servers
*/
Guild = 0,
Guild,
/**
* Interaction can be used within DMs with the app's bot user
*/
BotDM = 1,
BotDM,
/**
* Interaction can be used within Group DMs and DMs other than the app's bot user
*/
PrivateChannel = 2,
PrivateChannel,
}

/**
Expand Down
2 changes: 0 additions & 2 deletions payloads/v9/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,6 @@ export interface APIApplication {
install_params?: APIApplicationInstallParams;
/**
* Default scopes and permissions for each supported installation context. Value for each key is an integration type configuration object
*
* @unstable
*/
integration_types_config?: APIApplicationIntegrationTypesConfigMap;
/**
Expand Down
6 changes: 2 additions & 4 deletions payloads/v9/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -661,8 +661,6 @@ export interface APIMessage {
referenced_message?: APIMessage | null;
/**
* Sent if the message is sent as a result of an interaction
*
* @unstable
*/
interaction_metadata?: APIMessageInteractionMetadata;
/**
Expand Down Expand Up @@ -834,11 +832,11 @@ export enum MessageReferenceType {
/**
* A standard reference used by replies
*/
Default = 0,
Default,
/**
* Reference used to point to a message at a point in time
*/
Forward = 1,
Forward,
}

/**
Expand Down

0 comments on commit 4b64f84

Please sign in to comment.