mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 03:23:29 +01:00
refactor(FetchApplicationCommandOptions): Use Locale over LocaleString (#10625)
refactor(FetchApplicationCommandOptions): prefer `Locale`
This commit is contained in:
@@ -82,7 +82,7 @@ class ApplicationCommandManager extends CachedManager {
|
|||||||
* Options used to fetch Application Commands from Discord
|
* Options used to fetch Application Commands from Discord
|
||||||
* @typedef {BaseFetchOptions} FetchApplicationCommandOptions
|
* @typedef {BaseFetchOptions} FetchApplicationCommandOptions
|
||||||
* @property {Snowflake} [guildId] The guild's id to fetch commands for, for when the guild is not cached
|
* @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
|
* @property {boolean} [withLocalizations] Whether to fetch all localization data
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -469,11 +469,6 @@
|
|||||||
* @see {@link https://discord-api-types.dev/api/discord-api-types-v10/enum/Locale}
|
* @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
|
* @external MessageActivityType
|
||||||
* @see {@link https://discord-api-types.dev/api/discord-api-types-v10/enum/MessageActivityType}
|
* @see {@link https://discord-api-types.dev/api/discord-api-types-v10/enum/MessageActivityType}
|
||||||
|
|||||||
3
packages/discord.js/typings/index.d.ts
vendored
3
packages/discord.js/typings/index.d.ts
vendored
@@ -101,7 +101,6 @@ import {
|
|||||||
APIEmbedImage,
|
APIEmbedImage,
|
||||||
VideoQualityMode,
|
VideoQualityMode,
|
||||||
LocalizationMap,
|
LocalizationMap,
|
||||||
LocaleString,
|
|
||||||
MessageActivityType,
|
MessageActivityType,
|
||||||
APIAttachment,
|
APIAttachment,
|
||||||
APIChannel,
|
APIChannel,
|
||||||
@@ -5566,7 +5565,7 @@ export type EmojiResolvable = Snowflake | GuildEmoji | ReactionEmoji | Applicati
|
|||||||
|
|
||||||
export interface FetchApplicationCommandOptions extends BaseFetchOptions {
|
export interface FetchApplicationCommandOptions extends BaseFetchOptions {
|
||||||
guildId?: Snowflake;
|
guildId?: Snowflake;
|
||||||
locale?: LocaleString;
|
locale?: Locale;
|
||||||
withLocalizations?: boolean;
|
withLocalizations?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user