SharedName

export declare class SharedName
export declare class SharedName
This mixin holds name and description symbols for chat input commands.
ProtectedReadonly
clearNameLocalization(locale):this
Clears a name localization for this command.
NameTypeOptionalDescription
localeLocaleNoThe locale to clear
clearNameLocalizations():this
Clears all name localizations for this command.
setName(name):this
Sets the name of this command.
NameTypeOptionalDescription
namestringNoThe name to use
setNameLocalization(locale, localizedName):this
Sets a name localization for this command.
NameTypeOptionalDescription
localeLocaleNoThe locale to set
localizedNamestringNoThe localized name for the given locale
setNameLocalizations(localizedNames):this
Sets the name localizations for this command.
NameTypeOptionalDescription
localizedNamesPartial<Record<Locale, string>>NoThe object of localized names to set