Skip to content

Commit

Permalink
refactor(FetchApplicationCommandOptions): Use Locale over `LocaleSt…
Browse files Browse the repository at this point in the history
…ring` (#10625)

refactor(FetchApplicationCommandOptions): prefer `Locale`
  • Loading branch information
Jiralite committed Dec 5, 2024
1 parent 76042f0 commit 7ce6f2f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class ApplicationCommandManager extends CachedManager {
* Options used to fetch Application Commands from Discord
* @typedef {BaseFetchOptions} FetchApplicationCommandOptions
* @property {Snowflake} [guildId] The guild's id to fetch commands for, for when the guild is not cached
* @property {LocaleString} [locale] The locale to use when fetching this command
* @property {Locale} [locale] The locale to use when fetching this command
* @property {boolean} [withLocalizations] Whether to fetch all localization data
*/

Expand Down
5 changes: 0 additions & 5 deletions packages/discord.js/src/util/APITypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -475,11 +475,6 @@
* @see {@link https://discord-api-types.dev/api/discord-api-types-v10/enum/Locale}
*/

/**
* @external LocaleString
* @see {@link https://discord-api-types.dev/api/discord-api-types-v10#LocaleString}
*/

/**
* @external MessageActivityType
* @see {@link https://discord-api-types.dev/api/discord-api-types-v10/enum/MessageActivityType}
Expand Down
3 changes: 1 addition & 2 deletions packages/discord.js/typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ import {
APIEmbedImage,
VideoQualityMode,
LocalizationMap,
LocaleString,
MessageActivityType,
APIAttachment,
APIChannel,
Expand Down Expand Up @@ -5814,7 +5813,7 @@ export type EmojiResolvable = Snowflake | GuildEmoji | ReactionEmoji | Applicati

export interface FetchApplicationCommandOptions extends BaseFetchOptions {
guildId?: Snowflake;
locale?: LocaleString;
locale?: Locale;
withLocalizations?: boolean;
}

Expand Down

0 comments on commit 7ce6f2f

Please sign in to comment.