@discordjs/builders 2.0.0-dev.1732752780-e89c6b66a → 2.0.0-dev.1732839168-5b125eeec
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as discord_api_types_v10 from 'discord-api-types/v10';
|
|
2
|
-
import { APIButtonComponent, APIButtonComponentWithSKUId, APIMessageComponentEmoji, APIActionRowComponent, APIActionRowComponentTypes, APIButtonComponentWithCustomId, APIButtonComponentWithURL, Snowflake, APISelectMenuComponent, APIChannelSelectComponent, ChannelType, APIMentionableSelectComponent, APISelectMenuDefaultValue, SelectMenuDefaultValueType, APIRoleSelectComponent, APISelectMenuOption, APIStringSelectComponent, APIUserSelectComponent, APITextInputComponent, TextInputStyle, ComponentType, APIModalComponent, APIMessageComponent, ButtonStyle, APIApplicationCommandIntegerOption, APIApplicationCommandChannelOption, APIApplicationCommandNumberOption, APIApplicationCommandStringOption, APIApplicationCommandOptionChoice, RESTPostAPIApplicationCommandsJSONBody,
|
|
2
|
+
import { APIButtonComponent, APIButtonComponentWithSKUId, APIMessageComponentEmoji, APIActionRowComponent, APIActionRowComponentTypes, APIButtonComponentWithCustomId, APIButtonComponentWithURL, Snowflake, APISelectMenuComponent, APIChannelSelectComponent, ChannelType, APIMentionableSelectComponent, APISelectMenuDefaultValue, SelectMenuDefaultValueType, APIRoleSelectComponent, APISelectMenuOption, APIStringSelectComponent, APIUserSelectComponent, APITextInputComponent, TextInputStyle, ComponentType, APIModalComponent, APIMessageComponent, ButtonStyle, APIApplicationCommandIntegerOption, APIApplicationCommandChannelOption, APIApplicationCommandNumberOption, APIApplicationCommandStringOption, APIApplicationCommandOptionChoice, RESTPostAPIApplicationCommandsJSONBody, Locale, APIApplicationCommand, APIApplicationCommandBasicOption, APIApplicationCommandOption, ApplicationCommandOptionType, APIApplicationCommandSubcommandOption, APIApplicationCommandSubcommandGroupOption, InteractionContextType, ApplicationIntegrationType, Permissions, RESTPostAPIChatInputApplicationCommandsJSONBody, ApplicationCommandType, RESTPostAPIContextMenuApplicationCommandsJSONBody, APIModalInteractionResponseCallbackData, APIModalActionRowComponent, APIEmbedAuthor, APIEmbedField, APIEmbedFooter, APIEmbed } from 'discord-api-types/v10';
|
|
3
3
|
import { JSONEncodable } from '@discordjs/util';
|
|
4
4
|
import * as ts_mixer_dist_types_types_js from 'ts-mixer/dist/types/types.js';
|
|
5
5
|
import * as zod from 'zod';
|
|
@@ -1717,19 +1717,19 @@ declare class SharedName {
|
|
|
1717
1717
|
* @param locale - The locale to set
|
|
1718
1718
|
* @param localizedName - The localized name for the given `locale`
|
|
1719
1719
|
*/
|
|
1720
|
-
setNameLocalization(locale:
|
|
1720
|
+
setNameLocalization(locale: Locale, localizedName: string): this;
|
|
1721
1721
|
/**
|
|
1722
1722
|
* Clears a name localization for this command.
|
|
1723
1723
|
*
|
|
1724
1724
|
* @param locale - The locale to clear
|
|
1725
1725
|
*/
|
|
1726
|
-
clearNameLocalization(locale:
|
|
1726
|
+
clearNameLocalization(locale: Locale): this;
|
|
1727
1727
|
/**
|
|
1728
1728
|
* Sets the name localizations for this command.
|
|
1729
1729
|
*
|
|
1730
1730
|
* @param localizedNames - The object of localized names to set
|
|
1731
1731
|
*/
|
|
1732
|
-
setNameLocalizations(localizedNames: Partial<Record<
|
|
1732
|
+
setNameLocalizations(localizedNames: Partial<Record<Locale, string>>): this;
|
|
1733
1733
|
/**
|
|
1734
1734
|
* Clears all name localizations for this command.
|
|
1735
1735
|
*/
|
|
@@ -1755,19 +1755,19 @@ declare class SharedNameAndDescription extends SharedName {
|
|
|
1755
1755
|
* @param locale - The locale to set
|
|
1756
1756
|
* @param localizedDescription - The localized description for the given `locale`
|
|
1757
1757
|
*/
|
|
1758
|
-
setDescriptionLocalization(locale:
|
|
1758
|
+
setDescriptionLocalization(locale: Locale, localizedDescription: string): this;
|
|
1759
1759
|
/**
|
|
1760
1760
|
* Clears a description localization for this command.
|
|
1761
1761
|
*
|
|
1762
1762
|
* @param locale - The locale to clear
|
|
1763
1763
|
*/
|
|
1764
|
-
clearDescriptionLocalization(locale:
|
|
1764
|
+
clearDescriptionLocalization(locale: Locale): this;
|
|
1765
1765
|
/**
|
|
1766
1766
|
* Sets the description localizations for this command.
|
|
1767
1767
|
*
|
|
1768
1768
|
* @param localizedDescriptions - The object of localized descriptions to set
|
|
1769
1769
|
*/
|
|
1770
|
-
setDescriptionLocalizations(localizedDescriptions: Partial<Record<
|
|
1770
|
+
setDescriptionLocalizations(localizedDescriptions: Partial<Record<Locale, string>>): this;
|
|
1771
1771
|
/**
|
|
1772
1772
|
* Clears all description localizations for this command.
|
|
1773
1773
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as discord_api_types_v10 from 'discord-api-types/v10';
|
|
2
|
-
import { APIButtonComponent, APIButtonComponentWithSKUId, APIMessageComponentEmoji, APIActionRowComponent, APIActionRowComponentTypes, APIButtonComponentWithCustomId, APIButtonComponentWithURL, Snowflake, APISelectMenuComponent, APIChannelSelectComponent, ChannelType, APIMentionableSelectComponent, APISelectMenuDefaultValue, SelectMenuDefaultValueType, APIRoleSelectComponent, APISelectMenuOption, APIStringSelectComponent, APIUserSelectComponent, APITextInputComponent, TextInputStyle, ComponentType, APIModalComponent, APIMessageComponent, ButtonStyle, APIApplicationCommandIntegerOption, APIApplicationCommandChannelOption, APIApplicationCommandNumberOption, APIApplicationCommandStringOption, APIApplicationCommandOptionChoice, RESTPostAPIApplicationCommandsJSONBody,
|
|
2
|
+
import { APIButtonComponent, APIButtonComponentWithSKUId, APIMessageComponentEmoji, APIActionRowComponent, APIActionRowComponentTypes, APIButtonComponentWithCustomId, APIButtonComponentWithURL, Snowflake, APISelectMenuComponent, APIChannelSelectComponent, ChannelType, APIMentionableSelectComponent, APISelectMenuDefaultValue, SelectMenuDefaultValueType, APIRoleSelectComponent, APISelectMenuOption, APIStringSelectComponent, APIUserSelectComponent, APITextInputComponent, TextInputStyle, ComponentType, APIModalComponent, APIMessageComponent, ButtonStyle, APIApplicationCommandIntegerOption, APIApplicationCommandChannelOption, APIApplicationCommandNumberOption, APIApplicationCommandStringOption, APIApplicationCommandOptionChoice, RESTPostAPIApplicationCommandsJSONBody, Locale, APIApplicationCommand, APIApplicationCommandBasicOption, APIApplicationCommandOption, ApplicationCommandOptionType, APIApplicationCommandSubcommandOption, APIApplicationCommandSubcommandGroupOption, InteractionContextType, ApplicationIntegrationType, Permissions, RESTPostAPIChatInputApplicationCommandsJSONBody, ApplicationCommandType, RESTPostAPIContextMenuApplicationCommandsJSONBody, APIModalInteractionResponseCallbackData, APIModalActionRowComponent, APIEmbedAuthor, APIEmbedField, APIEmbedFooter, APIEmbed } from 'discord-api-types/v10';
|
|
3
3
|
import { JSONEncodable } from '@discordjs/util';
|
|
4
4
|
import * as ts_mixer_dist_types_types_js from 'ts-mixer/dist/types/types.js';
|
|
5
5
|
import * as zod from 'zod';
|
|
@@ -1717,19 +1717,19 @@ declare class SharedName {
|
|
|
1717
1717
|
* @param locale - The locale to set
|
|
1718
1718
|
* @param localizedName - The localized name for the given `locale`
|
|
1719
1719
|
*/
|
|
1720
|
-
setNameLocalization(locale:
|
|
1720
|
+
setNameLocalization(locale: Locale, localizedName: string): this;
|
|
1721
1721
|
/**
|
|
1722
1722
|
* Clears a name localization for this command.
|
|
1723
1723
|
*
|
|
1724
1724
|
* @param locale - The locale to clear
|
|
1725
1725
|
*/
|
|
1726
|
-
clearNameLocalization(locale:
|
|
1726
|
+
clearNameLocalization(locale: Locale): this;
|
|
1727
1727
|
/**
|
|
1728
1728
|
* Sets the name localizations for this command.
|
|
1729
1729
|
*
|
|
1730
1730
|
* @param localizedNames - The object of localized names to set
|
|
1731
1731
|
*/
|
|
1732
|
-
setNameLocalizations(localizedNames: Partial<Record<
|
|
1732
|
+
setNameLocalizations(localizedNames: Partial<Record<Locale, string>>): this;
|
|
1733
1733
|
/**
|
|
1734
1734
|
* Clears all name localizations for this command.
|
|
1735
1735
|
*/
|
|
@@ -1755,19 +1755,19 @@ declare class SharedNameAndDescription extends SharedName {
|
|
|
1755
1755
|
* @param locale - The locale to set
|
|
1756
1756
|
* @param localizedDescription - The localized description for the given `locale`
|
|
1757
1757
|
*/
|
|
1758
|
-
setDescriptionLocalization(locale:
|
|
1758
|
+
setDescriptionLocalization(locale: Locale, localizedDescription: string): this;
|
|
1759
1759
|
/**
|
|
1760
1760
|
* Clears a description localization for this command.
|
|
1761
1761
|
*
|
|
1762
1762
|
* @param locale - The locale to clear
|
|
1763
1763
|
*/
|
|
1764
|
-
clearDescriptionLocalization(locale:
|
|
1764
|
+
clearDescriptionLocalization(locale: Locale): this;
|
|
1765
1765
|
/**
|
|
1766
1766
|
* Sets the description localizations for this command.
|
|
1767
1767
|
*
|
|
1768
1768
|
* @param localizedDescriptions - The object of localized descriptions to set
|
|
1769
1769
|
*/
|
|
1770
|
-
setDescriptionLocalizations(localizedDescriptions: Partial<Record<
|
|
1770
|
+
setDescriptionLocalizations(localizedDescriptions: Partial<Record<Locale, string>>): this;
|
|
1771
1771
|
/**
|
|
1772
1772
|
* Clears all description localizations for this command.
|
|
1773
1773
|
*/
|
package/dist/index.js
CHANGED
|
@@ -3071,7 +3071,7 @@ var EmbedBuilder = class {
|
|
|
3071
3071
|
};
|
|
3072
3072
|
|
|
3073
3073
|
// src/index.ts
|
|
3074
|
-
var version = "2.0.0-dev.
|
|
3074
|
+
var version = "2.0.0-dev.1732839168-5b125eeec";
|
|
3075
3075
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3076
3076
|
0 && (module.exports = {
|
|
3077
3077
|
ActionRowBuilder,
|