mirror of
https://github.com/discordjs/discord.js.git
synced 2026-06-03 09:30:08 +00:00
* feat(builders): components v2 in builders v1 * feat: implemented the first components * fix: tests * fix: tests * fix: export the new stuff * feat: add rest of components * feat: add callback syntax * feat: callback syntax for section * fix: missing implements * fix: accessory property * fix: apply suggestions from v2 PR * chore: bring in line with builders v2 * fix: add missing type * chore: split accessory methods * chore: backport changes from v2 PR * fix: accent_color is nullish * fix: allow passing raw json to MediaGallery methods * fix: add test * chore: add Container#addXComponents * fix: docs * chore: bump discord-api-types * Update packages/builders/src/components/Assertions.ts Co-authored-by: Denis-Adrian Cristea <didinele.dev@gmail.com> --------- Co-authored-by: Denis-Adrian Cristea <didinele.dev@gmail.com>
83 lines
4.2 KiB
TypeScript
83 lines
4.2 KiB
TypeScript
export * as EmbedAssertions from './messages/embed/Assertions.js';
|
|
export * from './messages/embed/Embed.js';
|
|
// TODO: Consider removing this dep in the next major version
|
|
export * from '@discordjs/formatters';
|
|
|
|
export * as ComponentAssertions from './components/Assertions.js';
|
|
export * from './components/ActionRow.js';
|
|
export * from './components/button/Button.js';
|
|
export * from './components/Component.js';
|
|
export * from './components/Components.js';
|
|
export * from './components/textInput/TextInput.js';
|
|
export * as TextInputAssertions from './components/textInput/Assertions.js';
|
|
export * from './interactions/modals/Modal.js';
|
|
export * as ModalAssertions from './interactions/modals/Assertions.js';
|
|
|
|
export * from './components/selectMenu/BaseSelectMenu.js';
|
|
export * from './components/selectMenu/ChannelSelectMenu.js';
|
|
export * from './components/selectMenu/MentionableSelectMenu.js';
|
|
export * from './components/selectMenu/RoleSelectMenu.js';
|
|
export * from './components/selectMenu/StringSelectMenu.js';
|
|
// TODO: Remove those aliases in v2
|
|
export {
|
|
/**
|
|
* @deprecated Will be removed in the next major version, use {@link StringSelectMenuBuilder} instead.
|
|
*/
|
|
StringSelectMenuBuilder as SelectMenuBuilder,
|
|
} from './components/selectMenu/StringSelectMenu.js';
|
|
export {
|
|
/**
|
|
* @deprecated Will be removed in the next major version, use {@link StringSelectMenuOptionBuilder} instead.
|
|
*/
|
|
StringSelectMenuOptionBuilder as SelectMenuOptionBuilder,
|
|
} from './components/selectMenu/StringSelectMenuOption.js';
|
|
export * from './components/selectMenu/StringSelectMenuOption.js';
|
|
export * from './components/selectMenu/UserSelectMenu.js';
|
|
|
|
export * as ComponentsV2Assertions from './components/v2/Assertions.js';
|
|
export * from './components/v2/Container.js';
|
|
export * from './components/v2/File.js';
|
|
export * from './components/v2/MediaGallery.js';
|
|
export * from './components/v2/MediaGalleryItem.js';
|
|
export * from './components/v2/Section.js';
|
|
export * from './components/v2/Separator.js';
|
|
export * from './components/v2/TextDisplay.js';
|
|
export * from './components/v2/Thumbnail.js';
|
|
|
|
export * as SlashCommandAssertions from './interactions/slashCommands/Assertions.js';
|
|
export * from './interactions/slashCommands/SlashCommandBuilder.js';
|
|
export * from './interactions/slashCommands/SlashCommandSubcommands.js';
|
|
export * from './interactions/slashCommands/options/boolean.js';
|
|
export * from './interactions/slashCommands/options/channel.js';
|
|
export * from './interactions/slashCommands/options/integer.js';
|
|
export * from './interactions/slashCommands/options/mentionable.js';
|
|
export * from './interactions/slashCommands/options/number.js';
|
|
export * from './interactions/slashCommands/options/role.js';
|
|
export * from './interactions/slashCommands/options/attachment.js';
|
|
export * from './interactions/slashCommands/options/string.js';
|
|
export * from './interactions/slashCommands/options/user.js';
|
|
export * from './interactions/slashCommands/mixins/ApplicationCommandNumericOptionMinMaxValueMixin.js';
|
|
export * from './interactions/slashCommands/mixins/ApplicationCommandOptionBase.js';
|
|
export * from './interactions/slashCommands/mixins/ApplicationCommandOptionChannelTypesMixin.js';
|
|
export * from './interactions/slashCommands/mixins/ApplicationCommandOptionWithAutocompleteMixin.js';
|
|
export * from './interactions/slashCommands/mixins/ApplicationCommandOptionWithChoicesMixin.js';
|
|
export * from './interactions/slashCommands/mixins/NameAndDescription.js';
|
|
export * from './interactions/slashCommands/mixins/SharedSlashCommandOptions.js';
|
|
export * from './interactions/slashCommands/mixins/SharedSubcommands.js';
|
|
export * from './interactions/slashCommands/mixins/SharedSlashCommand.js';
|
|
|
|
export * as ContextMenuCommandAssertions from './interactions/contextMenuCommands/Assertions.js';
|
|
export * from './interactions/contextMenuCommands/ContextMenuCommandBuilder.js';
|
|
|
|
export * from './util/componentUtil.js';
|
|
export * from './util/normalizeArray.js';
|
|
export * from './util/validation.js';
|
|
|
|
/**
|
|
* The {@link https://github.com/discordjs/discord.js/blob/main/packages/builders#readme | @discordjs/builders} version
|
|
* that you are currently using.
|
|
*
|
|
* @privateRemarks This needs to explicitly be `string` so it is not typed as a "const string" that gets injected by esbuild.
|
|
*/
|
|
export const version = '[VI]{{inject}}[/VI]' as string;
|