SharedNameAndDescription

export declare class SharedNameAndDescription extends SharedName
export declare class SharedNameAndDescription extends SharedName
This mixin holds name and description symbols for chat input commands.

Extends

SharedName
ProtectedReadonly
clearDescriptionLocalization(locale):this
Clears a description localization for this command.
NameTypeOptionalDescription
localeLocaleNoThe locale to clear
clearDescriptionLocalizations():this
Clears all description localizations for this command.
clearNameLocalization(locale):this
Clears a name localization for this command.
NameTypeOptionalDescription
localeLocaleNoThe locale to clear
Inherited from SharedName
clearNameLocalizations():this
Clears all name localizations for this command.
Inherited from SharedName
setDescription(description):this
Sets the description of this command.
NameTypeOptionalDescription
descriptionstringNoThe description to use
setDescriptionLocalization(locale, localizedDescription):this
Sets a description localization for this command.
NameTypeOptionalDescription
localeLocaleNoThe locale to set
localizedDescriptionstringNoThe localized description for the given locale
setDescriptionLocalizations(localizedDescriptions):this
Sets the description localizations for this command.
NameTypeOptionalDescription
localizedDescriptionsPartial<Record<Locale, string>>NoThe object of localized descriptions to set
setName(name):this
Sets the name of this command.
NameTypeOptionalDescription
namestringNoThe name to use
Inherited from SharedName
setNameLocalization(locale, localizedName):this
Sets a name localization for this command.
NameTypeOptionalDescription
localeLocaleNoThe locale to set
localizedNamestringNoThe localized name for the given locale
Inherited from SharedName
setNameLocalizations(localizedNames):this
Sets the name localizations for this command.
NameTypeOptionalDescription
localizedNamesPartial<Record<Locale, string>>NoThe object of localized names to set
Inherited from SharedName