class SharedNameAndDescription

export declare class SharedNameAndDescription

This mixin holds name and description symbols for slash commands.

readonlyoptional
description_localizations? : LocalizationMap

The description localizations of this command.

readonly
description : string

The description of this command.

readonlyoptional
name_localizations? : LocalizationMap

The name localizations of this command.

readonly
name : string

The name of this command.

setDescription(
description: string
) : this

Sets the description of this command.

setDescriptionLocalization(
locale: LocaleString
localizedDescription: string | null
) : this

Sets a description localization for this command.

setDescriptionLocalizations(
localizedDescriptions: LocalizationMap | null
) : this

Sets the description localizations for this command.

setName(
name: string
) : this

Sets the name of this command.

setNameLocalization(
locale: LocaleString
localizedName: string | null
) : this

SSets a name localization for this command.

setNameLocalizations(
localizedNames: LocalizationMap | null
) : this

Sets the name localizations for this command.