/
docs
/
packages
/
builders
/
main
/
SharedName%3AClass
Search...
K
builders
discord.js
brokers
builders
collection
core
formatters
next
proxy
rest
util
voice
ws
main
main
Classes
ActionRowBuilder
ApplicationCommandNumericOptionMinMaxValueMixin
ApplicationCommandOptionBase
ApplicationCommandOptionChannelTypesMixin
ApplicationCommandOptionWithAutocompleteMixin
ApplicationCommandOptionWithChoicesMixin
BaseButtonBuilder
BaseSelectMenuBuilder
ChannelSelectMenuBuilder
ChatInputCommandAttachmentOption
ChatInputCommandBooleanOption
ChatInputCommandBuilder
ChatInputCommandChannelOption
ChatInputCommandIntegerOption
ChatInputCommandMentionableOption
ChatInputCommandNumberOption
ChatInputCommandRoleOption
ChatInputCommandStringOption
ChatInputCommandSubcommandBuilder
ChatInputCommandSubcommandGroupBuilder
ChatInputCommandUserOption
CommandBuilder
ComponentBuilder
ContextMenuCommandBuilder
CustomIdButtonBuilder
DangerButtonBuilder
EmbedAuthorBuilder
EmbedBuilder
EmbedFieldBuilder
EmbedFooterBuilder
EmojiOrLabelButtonMixin
LinkButtonBuilder
MentionableSelectMenuBuilder
MessageContextCommandBuilder
ModalBuilder
PremiumButtonBuilder
PrimaryButtonBuilder
RoleSelectMenuBuilder
SecondaryButtonBuilder
SharedChatInputCommandOptions
SharedChatInputCommandSubcommands
SharedName
SharedNameAndDescription
StringSelectMenuBuilder
StringSelectMenuOptionBuilder
SuccessButtonBuilder
TextInputBuilder
UserContextCommandBuilder
UserSelectMenuBuilder
Functions
createComponentBuilder
disableValidators
embedLength
enableValidators
isValidationEnabled
normalizeArray
Interfaces
ActionRowBuilderData
ApplicationCommandNumericOptionMinMaxValueData
ApplicationCommandOptionBaseData
ApplicationCommandOptionChannelTypesData
ApplicationCommandOptionWithAutocompleteData
ApplicationCommandOptionWithChoicesData
ChatInputCommandSubcommandGroupData
CommandData
EmbedBuilderData
EmojiOrLabelButtonData
MappedComponentTypes
ModalBuilderData
SharedChatInputCommandOptionsData
SharedChatInputCommandSubcommandsData
SharedNameAndDescriptionData
SharedNameData
StringSelectMenuData
Types
AnyActionRowComponentBuilder
AnyAPIActionRowComponent
ApplicationCommandOptionAllowedChannelTypes
AutocompletableOptions
ButtonBuilder
ContextMenuCommandType
CustomIdButtonStyle
MessageActionRowComponentBuilder
MessageComponentBuilder
ModalActionRowComponentBuilder
ModalComponentBuilder
RestOrArray
Variables
actionRowPredicate
ApplicationCommandOptionAllowedChannelTypes
basicOptionPredicate
buttonPredicate
channelOptionPredicate
chatInputCommandPredicate
chatInputCommandSubcommandGroupPredicate
chatInputCommandSubcommandPredicate
customIdPredicate
embedAuthorPredicate
embedFieldPredicate
embedFooterPredicate
embedPredicate
emojiPredicate
integerOptionPredicate
localeMapPredicate
memberPermissionsPredicate
messageCommandPredicate
modalPredicate
numberOptionPredicate
refineURLPredicate
selectMenuChannelPredicate
selectMenuMentionablePredicate
selectMenuRolePredicate
selectMenuStringOptionPredicate
selectMenuStringPredicate
selectMenuUserPredicate
stringOptionPredicate
textInputPredicate
userCommandPredicate
version
SharedName
export declare class
SharedName
export declare class
SharedName
Summary
This mixin holds name and description symbols for chat input commands.
Properties
Protected
Readonly
data
:
SharedNameData
Methods
clearNameLocalization(locale)
:
this
Clears a name localization for this command.
Parameters
Name
Type
Optional
Description
locale
Locale
No
The locale to clear
clearNameLocalizations()
:
this
Clears all name localizations for this command.
setName(name)
:
this
Sets the name of this command.
Parameters
Name
Type
Optional
Description
name
string
No
The name to use
setNameLocalization(locale, localizedName)
:
this
Sets a name localization for this command.
Parameters
Name
Type
Optional
Description
locale
Locale
No
The locale to set
localizedName
string
No
The localized name for the given
locale
setNameLocalizations(localizedNames)
:
this
Sets the name localizations for this command.
Parameters
Name
Type
Optional
Description
localizedNames
Partial
<
Record
<
Locale
,
string
>>
No
The object of localized names to set