/
docs
/
packages
/
builders
/
main
/
RestOrArray%3ATypeAlias
Search...
K
builders
discord.js
brokers
builders
collection
core
formatters
next
proxy
rest
util
voice
ws
main
main
Classes
ActionRowBuilder
ApplicationCommandNumericOptionMinMaxValueMixin
ApplicationCommandOptionBase
ApplicationCommandOptionChannelTypesMixin
ApplicationCommandOptionWithChoicesAndAutocompleteMixin
BaseSelectMenuBuilder
ButtonBuilder
ChannelSelectMenuBuilder
ComponentBuilder
ContextMenuCommandBuilder
EmbedBuilder
MentionableSelectMenuBuilder
ModalBuilder
RoleSelectMenuBuilder
SharedNameAndDescription
SharedSlashCommandOptions
SlashCommandAttachmentOption
SlashCommandBooleanOption
SlashCommandBuilder
SlashCommandChannelOption
SlashCommandIntegerOption
SlashCommandMentionableOption
SlashCommandNumberOption
SlashCommandRoleOption
SlashCommandStringOption
SlashCommandSubcommandBuilder
SlashCommandSubcommandGroupBuilder
SlashCommandUserOption
StringSelectMenuBuilder
StringSelectMenuOptionBuilder
TextInputBuilder
UserSelectMenuBuilder
Functions
createComponentBuilder
disableValidators
embedLength
enableValidators
isValidationEnabled
normalizeArray
Interfaces
EmbedImageData
IconData
MappedComponentTypes
SlashCommandBuilder
SlashCommandChannelOption
SlashCommandIntegerOption
SlashCommandNumberOption
SlashCommandOptionsOnlyBuilder
SlashCommandStringOption
SlashCommandSubcommandBuilder
SlashCommandSubcommandGroupBuilder
SlashCommandSubcommandsOnlyBuilder
ToAPIApplicationCommandOptions
Types
AnyAPIActionRowComponent
AnyComponentBuilder
ApplicationCommandOptionAllowedChannelTypes
ContextMenuCommandType
EmbedAuthorData
EmbedAuthorOptions
EmbedFooterData
EmbedFooterOptions
MessageActionRowComponentBuilder
MessageComponentBuilder
ModalActionRowComponentBuilder
ModalComponentBuilder
RestOrArray
RGBTuple
Variables
version
RestOrArray
export type
RestOrArray
<
T
>
=
T
[]
|
[
T
[]
];
export type
RestOrArray
<
T
>
=
T
[]
|
[
T
[]
];
Summary
Represents data that may be an array or came from a rest parameter.
Remarks
This type is used throughout builders to ensure both an array and variadic arguments may be used. It is normalized with
normalizeArray
.