class SlashCommandChannelOption
extends
ApplicationCommandOptionBaseexport declare class SlashCommandChannelOption extends ApplicationCommandOptionBase
A slash command channel option.
readonlyoptionalLocalizationMap description_localizations? :
The description localizations of this command.
Inherited from: SharedNameAndDescription
readonlystring description :
The description of this command.
Inherited from: SharedNameAndDescription
readonlyoptionalLocalizationMap name_localizations? :
The name localizations of this command.
Inherited from: SharedNameAndDescription
readonlyboolean = false required :
Whether this option is required.
Inherited from: ApplicationCommandOptionBase
readonlyApplicationCommandOptionType.Channel type :
The type of this option.
readonlyoptionalApplicationCommandOptionAllowedChannelTypes[] channel_types? :
The channel types of this option.
Inherited from: ApplicationCommandOptionChannelTypesMixin
protected runRequiredValidationsvoid () :
This method runs required validators on this builder.
Inherited from: ApplicationCommandOptionBase
setDescriptiondescription: string) : this (
Sets the description of this command.
Inherited from: SharedNameAndDescription
setDescriptionLocalizationlocale: LocaleStringlocalizedDescription: string | null) : this (
Sets a description localization for this command.
Inherited from: SharedNameAndDescription
setDescriptionLocalizationslocalizedDescriptions: LocalizationMap | null) : this (
Sets the description localizations for this command.
Inherited from: SharedNameAndDescription
setNameLocalizationlocale: LocaleStringlocalizedName: string | null) : this (
SSets a name localization for this command.
Inherited from: SharedNameAndDescription
setNameLocalizationslocalizedNames: LocalizationMap | null) : this (
Sets the name localizations for this command.
Inherited from: SharedNameAndDescription
setRequiredrequired: boolean) : this (
Sets whether this option is required.
Inherited from: ApplicationCommandOptionBase
toJSONAPIApplicationCommandChannelOption () :
Serializes this builder to API-compatible JSON data.
addChannelTypeschannelTypes: ApplicationCommandOptionAllowedChannelTypes[]) : this (
Adds channel types to this option.
Inherited from: ApplicationCommandOptionChannelTypesMixin