class SharedNameAndDescription

external
declare class SharedNameAndDescription

This mixin holds name and description symbols for slash commands.

readonlyoptionalexternal
description_localizations? : LocalizationMap

The description localizations of this command.

readonlyexternal
description : string

The description of this command.

readonlyoptionalexternal
name_localizations? : LocalizationMap

The name localizations of this command.

readonlyexternal
name : string

The name of this command.

external
setDescription(
description: string
) : this

Sets the description of this command.

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

Sets a description localization for this command.

external
setDescriptionLocalizations(
localizedDescriptions: LocalizationMap | null
) : this

Sets the description localizations for this command.

external
setName(
name: string
) : this

Sets the name of this command.

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

Sets a name localization for this command.

external
setNameLocalizations(
localizedNames: LocalizationMap | null
) : this

Sets the name localizations for this command.