Skip to content

Commit 7ce6f2f

Browse files
committed
refactor(FetchApplicationCommandOptions): Use Locale over LocaleString (#10625)
refactor(FetchApplicationCommandOptions): prefer `Locale`
1 parent 76042f0 commit 7ce6f2f

3 files changed

Lines changed: 2 additions & 8 deletions

File tree

packages/discord.js/src/managers/ApplicationCommandManager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class ApplicationCommandManager extends CachedManager {
8282
* Options used to fetch Application Commands from Discord
8383
* @typedef {BaseFetchOptions} FetchApplicationCommandOptions
8484
* @property {Snowflake} [guildId] The guild's id to fetch commands for, for when the guild is not cached
85-
* @property {LocaleString} [locale] The locale to use when fetching this command
85+
* @property {Locale} [locale] The locale to use when fetching this command
8686
* @property {boolean} [withLocalizations] Whether to fetch all localization data
8787
*/
8888

packages/discord.js/src/util/APITypes.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -475,11 +475,6 @@
475475
* @see {@link https://discord-api-types.dev/api/discord-api-types-v10/enum/Locale}
476476
*/
477477

478-
/**
479-
* @external LocaleString
480-
* @see {@link https://discord-api-types.dev/api/discord-api-types-v10#LocaleString}
481-
*/
482-
483478
/**
484479
* @external MessageActivityType
485480
* @see {@link https://discord-api-types.dev/api/discord-api-types-v10/enum/MessageActivityType}

packages/discord.js/typings/index.d.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ import {
126126
APIEmbedImage,
127127
VideoQualityMode,
128128
LocalizationMap,
129-
LocaleString,
130129
MessageActivityType,
131130
APIAttachment,
132131
APIChannel,
@@ -5814,7 +5813,7 @@ export type EmojiResolvable = Snowflake | GuildEmoji | ReactionEmoji | Applicati
58145813

58155814
export interface FetchApplicationCommandOptions extends BaseFetchOptions {
58165815
guildId?: Snowflake;
5817-
locale?: LocaleString;
5816+
locale?: Locale;
58185817
withLocalizations?: boolean;
58195818
}
58205819

0 commit comments

Comments
 (0)