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
localeLocaleNo
The locale to clear
clearDescriptionLocalizations():this
Clears all description localizations for this command.
clearNameLocalization(locale):this
Clears a name localization for this command.
NameTypeOptionalDescription
localeLocaleNo
The 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
descriptionstringNo
The description to use
setDescriptionLocalization(locale, localizedDescription):this
Sets a description localization for this command.
NameTypeOptionalDescription
localeLocaleNo
The locale to set
localizedDescriptionstringNo
The localized description for the given locale
setDescriptionLocalizations(localizedDescriptions):this
Sets the description localizations for this command.
NameTypeOptionalDescription
localizedDescriptionsPartial<Record<Locale, string>>No
The object of localized descriptions to set
setName(name):this
Sets the name of this command.
NameTypeOptionalDescription
namestringNo
The name to use
Inherited from SharedName
setNameLocalization(locale, localizedName):this
Sets a name localization for this command.
NameTypeOptionalDescription
localeLocaleNo
The locale to set
localizedNamestringNo
The localized name for the given locale
Inherited from SharedName
setNameLocalizations(localizedNames):this
Sets the name localizations for this command.
NameTypeOptionalDescription
localizedNamesPartial<Record<Locale, string>>No
The object of localized names to set
Inherited from SharedName