diff --git a/deno/payloads/common.ts b/deno/payloads/common.ts index 2fd26a56..35196071 100644 --- a/deno/payloads/common.ts +++ b/deno/payloads/common.ts @@ -57,4 +57,4 @@ export const PermissionFlagsBits = { */ Object.freeze(PermissionFlagsBits); -export type LocalizationMap = Partial>; +export type LocalizationMap = Partial>; diff --git a/deno/payloads/v10/_interactions/applicationCommands.ts b/deno/payloads/v10/_interactions/applicationCommands.ts index 9467175d..27e94313 100644 --- a/deno/payloads/v10/_interactions/applicationCommands.ts +++ b/deno/payloads/v10/_interactions/applicationCommands.ts @@ -50,6 +50,10 @@ export interface APIApplicationCommand { * Localization dictionary for the name field. Values follow the same restrictions as name */ name_localizations?: LocalizationMap | null; + /** + * The localized name + */ + name_localized?: string; /** * 1-100 character description for `CHAT_INPUT` commands, empty string for `USER` and `MESSAGE` commands */ @@ -58,6 +62,10 @@ export interface APIApplicationCommand { * Localization dictionary for the description field. Values follow the same restrictions as description */ description_localizations?: LocalizationMap | null; + /** + * The localized description + */ + description_localized?: string; /** * The parameters for the `CHAT_INPUT` command, max 25 */ diff --git a/deno/payloads/v9/_interactions/applicationCommands.ts b/deno/payloads/v9/_interactions/applicationCommands.ts index 468c0a4d..d642c6e0 100644 --- a/deno/payloads/v9/_interactions/applicationCommands.ts +++ b/deno/payloads/v9/_interactions/applicationCommands.ts @@ -50,6 +50,10 @@ export interface APIApplicationCommand { * Localization dictionary for the name field. Values follow the same restrictions as name */ name_localizations?: LocalizationMap | null; + /** + * The localized name + */ + name_localized?: string; /** * 1-100 character description for `CHAT_INPUT` commands, empty string for `USER` and `MESSAGE` commands */ @@ -58,6 +62,10 @@ export interface APIApplicationCommand { * Localization dictionary for the description field. Values follow the same restrictions as description */ description_localizations?: LocalizationMap | null; + /** + * The localized description + */ + description_localized?: string; /** * The parameters for the `CHAT_INPUT` command, max 25 */ diff --git a/deno/rest/v10/interactions.ts b/deno/rest/v10/interactions.ts index a74e9378..f5fef2fa 100644 --- a/deno/rest/v10/interactions.ts +++ b/deno/rest/v10/interactions.ts @@ -27,7 +27,17 @@ export type RESTGetAPIApplicationCommandsResult = APIApplicationCommand[]; export type RESTGetAPIApplicationCommandResult = APIApplicationCommand; type RESTPostAPIBaseApplicationCommandsJSONBody = AddUndefinedToPossiblyUndefinedPropertiesOfInterface< - Omit + Omit< + APIApplicationCommand, + | 'id' + | 'application_id' + | 'description' + | 'type' + | 'version' + | 'guild_id' + | 'name_localized' + | 'description_localized' + > >; /** diff --git a/deno/rest/v9/interactions.ts b/deno/rest/v9/interactions.ts index 9371c1fc..d11f7975 100644 --- a/deno/rest/v9/interactions.ts +++ b/deno/rest/v9/interactions.ts @@ -27,7 +27,17 @@ export type RESTGetAPIApplicationCommandsResult = APIApplicationCommand[]; export type RESTGetAPIApplicationCommandResult = APIApplicationCommand; type RESTPostAPIBaseApplicationCommandsJSONBody = AddUndefinedToPossiblyUndefinedPropertiesOfInterface< - Omit + Omit< + APIApplicationCommand, + | 'id' + | 'application_id' + | 'description' + | 'type' + | 'version' + | 'guild_id' + | 'name_localized' + | 'description_localized' + > >; /** diff --git a/payloads/common.ts b/payloads/common.ts index 3324631d..c7a5c57a 100644 --- a/payloads/common.ts +++ b/payloads/common.ts @@ -57,4 +57,4 @@ export const PermissionFlagsBits = { */ Object.freeze(PermissionFlagsBits); -export type LocalizationMap = Partial>; +export type LocalizationMap = Partial>; diff --git a/payloads/v10/_interactions/applicationCommands.ts b/payloads/v10/_interactions/applicationCommands.ts index 4f40d58f..94777924 100644 --- a/payloads/v10/_interactions/applicationCommands.ts +++ b/payloads/v10/_interactions/applicationCommands.ts @@ -50,6 +50,10 @@ export interface APIApplicationCommand { * Localization dictionary for the name field. Values follow the same restrictions as name */ name_localizations?: LocalizationMap | null; + /** + * The localized name + */ + name_localized?: string; /** * 1-100 character description for `CHAT_INPUT` commands, empty string for `USER` and `MESSAGE` commands */ @@ -58,6 +62,10 @@ export interface APIApplicationCommand { * Localization dictionary for the description field. Values follow the same restrictions as description */ description_localizations?: LocalizationMap | null; + /** + * The localized description + */ + description_localized?: string; /** * The parameters for the `CHAT_INPUT` command, max 25 */ diff --git a/payloads/v9/_interactions/applicationCommands.ts b/payloads/v9/_interactions/applicationCommands.ts index 1352fee8..7e4a7666 100644 --- a/payloads/v9/_interactions/applicationCommands.ts +++ b/payloads/v9/_interactions/applicationCommands.ts @@ -50,6 +50,10 @@ export interface APIApplicationCommand { * Localization dictionary for the name field. Values follow the same restrictions as name */ name_localizations?: LocalizationMap | null; + /** + * The localized name + */ + name_localized?: string; /** * 1-100 character description for `CHAT_INPUT` commands, empty string for `USER` and `MESSAGE` commands */ @@ -58,6 +62,10 @@ export interface APIApplicationCommand { * Localization dictionary for the description field. Values follow the same restrictions as description */ description_localizations?: LocalizationMap | null; + /** + * The localized description + */ + description_localized?: string; /** * The parameters for the `CHAT_INPUT` command, max 25 */ diff --git a/rest/v10/interactions.ts b/rest/v10/interactions.ts index 8f2b6ac4..9689752c 100644 --- a/rest/v10/interactions.ts +++ b/rest/v10/interactions.ts @@ -27,7 +27,17 @@ export type RESTGetAPIApplicationCommandsResult = APIApplicationCommand[]; export type RESTGetAPIApplicationCommandResult = APIApplicationCommand; type RESTPostAPIBaseApplicationCommandsJSONBody = AddUndefinedToPossiblyUndefinedPropertiesOfInterface< - Omit + Omit< + APIApplicationCommand, + | 'id' + | 'application_id' + | 'description' + | 'type' + | 'version' + | 'guild_id' + | 'name_localized' + | 'description_localized' + > >; /** diff --git a/rest/v9/interactions.ts b/rest/v9/interactions.ts index 1beaa3c8..6eccf330 100644 --- a/rest/v9/interactions.ts +++ b/rest/v9/interactions.ts @@ -27,7 +27,17 @@ export type RESTGetAPIApplicationCommandsResult = APIApplicationCommand[]; export type RESTGetAPIApplicationCommandResult = APIApplicationCommand; type RESTPostAPIBaseApplicationCommandsJSONBody = AddUndefinedToPossiblyUndefinedPropertiesOfInterface< - Omit + Omit< + APIApplicationCommand, + | 'id' + | 'application_id' + | 'description' + | 'type' + | 'version' + | 'guild_id' + | 'name_localized' + | 'description_localized' + > >; /**