Skip to content

Commit 4b64f84

Browse files
authored
feat: remove unstable from stable fields (#1086)
1 parent 2803e8d commit 4b64f84

File tree

12 files changed

+28
-60
lines changed

12 files changed

+28
-60
lines changed

deno/payloads/v10/_interactions/applicationCommands.ts

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,10 @@ export interface APIApplicationCommand {
9292
nsfw?: boolean;
9393
/**
9494
* Installation context(s) where the command is available, only for globally-scoped commands. Defaults to `GUILD_INSTALL ([0])`
95-
*
96-
* @unstable
9795
*/
9896
integration_types?: ApplicationIntegrationType[];
9997
/**
10098
* 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]`.
101-
*
102-
* @unstable
10399
*/
104100
contexts?: InteractionContextType[] | null;
105101
/**
@@ -124,11 +120,11 @@ export enum ApplicationIntegrationType {
124120
/**
125121
* App is installable to servers
126122
*/
127-
GuildInstall = 0,
123+
GuildInstall,
128124
/**
129125
* App is installable to users
130126
*/
131-
UserInstall = 1,
127+
UserInstall,
132128
}
133129

134130
/**
@@ -138,15 +134,15 @@ export enum InteractionContextType {
138134
/**
139135
* Interaction can be used within servers
140136
*/
141-
Guild = 0,
137+
Guild,
142138
/**
143139
* Interaction can be used within DMs with the app's bot user
144140
*/
145-
BotDM = 1,
141+
BotDM,
146142
/**
147143
* Interaction can be used within Group DMs and DMs other than the app's bot user
148144
*/
149-
PrivateChannel = 2,
145+
PrivateChannel,
150146
}
151147

152148
/**

deno/payloads/v10/application.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,6 @@ export interface APIApplication {
135135
install_params?: APIApplicationInstallParams;
136136
/**
137137
* Default scopes and permissions for each supported installation context. Value for each key is an integration type configuration object
138-
*
139-
* @unstable
140138
*/
141139
integration_types_config?: APIApplicationIntegrationTypesConfigMap;
142140
/**

deno/payloads/v10/channel.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -669,8 +669,6 @@ export interface APIMessage {
669669
referenced_message?: APIMessage | null;
670670
/**
671671
* Sent if the message is sent as a result of an interaction
672-
*
673-
* @unstable
674672
*/
675673
interaction_metadata?: APIMessageInteractionMetadata;
676674
/**
@@ -849,11 +847,11 @@ export enum MessageReferenceType {
849847
/**
850848
* A standard reference used by replies
851849
*/
852-
Default = 0,
850+
Default,
853851
/**
854852
* Reference used to point to a message at a point in time
855853
*/
856-
Forward = 1,
854+
Forward,
857855
}
858856

859857
/**

deno/payloads/v9/_interactions/applicationCommands.ts

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,10 @@ export interface APIApplicationCommand {
9292
nsfw?: boolean;
9393
/**
9494
* Installation context(s) where the command is available, only for globally-scoped commands. Defaults to `GUILD_INSTALL ([0])`
95-
*
96-
* @unstable
9795
*/
9896
integration_types?: ApplicationIntegrationType[];
9997
/**
10098
* 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]`.
101-
*
102-
* @unstable
10399
*/
104100
contexts?: InteractionContextType[] | null;
105101
/**
@@ -124,11 +120,11 @@ export enum ApplicationIntegrationType {
124120
/**
125121
* App is installable to servers
126122
*/
127-
GuildInstall = 0,
123+
GuildInstall,
128124
/**
129125
* App is installable to users
130126
*/
131-
UserInstall = 1,
127+
UserInstall,
132128
}
133129

134130
/**
@@ -138,15 +134,15 @@ export enum InteractionContextType {
138134
/**
139135
* Interaction can be used within servers
140136
*/
141-
Guild = 0,
137+
Guild,
142138
/**
143139
* Interaction can be used within DMs with the app's bot user
144140
*/
145-
BotDM = 1,
141+
BotDM,
146142
/**
147143
* Interaction can be used within Group DMs and DMs other than the app's bot user
148144
*/
149-
PrivateChannel = 2,
145+
PrivateChannel,
150146
}
151147

152148
/**

deno/payloads/v9/application.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,6 @@ export interface APIApplication {
135135
install_params?: APIApplicationInstallParams;
136136
/**
137137
* Default scopes and permissions for each supported installation context. Value for each key is an integration type configuration object
138-
*
139-
* @unstable
140138
*/
141139
integration_types_config?: APIApplicationIntegrationTypesConfigMap;
142140
/**

deno/payloads/v9/channel.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -661,8 +661,6 @@ export interface APIMessage {
661661
referenced_message?: APIMessage | null;
662662
/**
663663
* Sent if the message is sent as a result of an interaction
664-
*
665-
* @unstable
666664
*/
667665
interaction_metadata?: APIMessageInteractionMetadata;
668666
/**
@@ -834,11 +832,11 @@ export enum MessageReferenceType {
834832
/**
835833
* A standard reference used by replies
836834
*/
837-
Default = 0,
835+
Default,
838836
/**
839837
* Reference used to point to a message at a point in time
840838
*/
841-
Forward = 1,
839+
Forward,
842840
}
843841

844842
/**

payloads/v10/_interactions/applicationCommands.ts

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,10 @@ export interface APIApplicationCommand {
9292
nsfw?: boolean;
9393
/**
9494
* Installation context(s) where the command is available, only for globally-scoped commands. Defaults to `GUILD_INSTALL ([0])`
95-
*
96-
* @unstable
9795
*/
9896
integration_types?: ApplicationIntegrationType[];
9997
/**
10098
* 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]`.
101-
*
102-
* @unstable
10399
*/
104100
contexts?: InteractionContextType[] | null;
105101
/**
@@ -124,11 +120,11 @@ export enum ApplicationIntegrationType {
124120
/**
125121
* App is installable to servers
126122
*/
127-
GuildInstall = 0,
123+
GuildInstall,
128124
/**
129125
* App is installable to users
130126
*/
131-
UserInstall = 1,
127+
UserInstall,
132128
}
133129

134130
/**
@@ -138,15 +134,15 @@ export enum InteractionContextType {
138134
/**
139135
* Interaction can be used within servers
140136
*/
141-
Guild = 0,
137+
Guild,
142138
/**
143139
* Interaction can be used within DMs with the app's bot user
144140
*/
145-
BotDM = 1,
141+
BotDM,
146142
/**
147143
* Interaction can be used within Group DMs and DMs other than the app's bot user
148144
*/
149-
PrivateChannel = 2,
145+
PrivateChannel,
150146
}
151147

152148
/**

payloads/v10/application.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,6 @@ export interface APIApplication {
135135
install_params?: APIApplicationInstallParams;
136136
/**
137137
* Default scopes and permissions for each supported installation context. Value for each key is an integration type configuration object
138-
*
139-
* @unstable
140138
*/
141139
integration_types_config?: APIApplicationIntegrationTypesConfigMap;
142140
/**

payloads/v10/channel.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -669,8 +669,6 @@ export interface APIMessage {
669669
referenced_message?: APIMessage | null;
670670
/**
671671
* Sent if the message is sent as a result of an interaction
672-
*
673-
* @unstable
674672
*/
675673
interaction_metadata?: APIMessageInteractionMetadata;
676674
/**
@@ -849,11 +847,11 @@ export enum MessageReferenceType {
849847
/**
850848
* A standard reference used by replies
851849
*/
852-
Default = 0,
850+
Default,
853851
/**
854852
* Reference used to point to a message at a point in time
855853
*/
856-
Forward = 1,
854+
Forward,
857855
}
858856

859857
/**

payloads/v9/_interactions/applicationCommands.ts

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,10 @@ export interface APIApplicationCommand {
9292
nsfw?: boolean;
9393
/**
9494
* Installation context(s) where the command is available, only for globally-scoped commands. Defaults to `GUILD_INSTALL ([0])`
95-
*
96-
* @unstable
9795
*/
9896
integration_types?: ApplicationIntegrationType[];
9997
/**
10098
* 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]`.
101-
*
102-
* @unstable
10399
*/
104100
contexts?: InteractionContextType[] | null;
105101
/**
@@ -124,11 +120,11 @@ export enum ApplicationIntegrationType {
124120
/**
125121
* App is installable to servers
126122
*/
127-
GuildInstall = 0,
123+
GuildInstall,
128124
/**
129125
* App is installable to users
130126
*/
131-
UserInstall = 1,
127+
UserInstall,
132128
}
133129

134130
/**
@@ -138,15 +134,15 @@ export enum InteractionContextType {
138134
/**
139135
* Interaction can be used within servers
140136
*/
141-
Guild = 0,
137+
Guild,
142138
/**
143139
* Interaction can be used within DMs with the app's bot user
144140
*/
145-
BotDM = 1,
141+
BotDM,
146142
/**
147143
* Interaction can be used within Group DMs and DMs other than the app's bot user
148144
*/
149-
PrivateChannel = 2,
145+
PrivateChannel,
150146
}
151147

152148
/**

0 commit comments

Comments
 (0)