class SlashCommandChannelOption
extends
ApplicationCommandOptionBaseexport declare class SlashCommandChannelOption extends ApplicationCommandOptionBaseA slash command channel option.
readonlyoptionaldescription_localizations? : LocalizationMap
The description localizations of this command.
Inherited from: SharedNameAndDescription
readonlydescription : string
The description of this command.
Inherited from: SharedNameAndDescription
readonlyoptionalname_localizations? : LocalizationMap
The name localizations of this command.
Inherited from: SharedNameAndDescription
readonlyrequired : boolean
Whether this option is required.
Inherited from: ApplicationCommandOptionBase
readonlytype : ApplicationCommandOptionType.Channel
The type of this option.
readonlyoptionalchannel_types? : ApplicationCommandOptionAllowedChannelTypes[]
The channel types of this option.
Inherited from: ApplicationCommandOptionChannelTypesMixin
protected runRequiredValidations() : void
This method runs required validators on this builder.
Inherited from: ApplicationCommandOptionBase
setDescription(description: string) : this
Sets the description of this command.
Inherited from: SharedNameAndDescription
setDescriptionLocalization(locale: LocaleString) : this
Sets a description localization for this command.
Inherited from: SharedNameAndDescription
setDescriptionLocalizations(localizedDescriptions: LocalizationMap | null) : this
Sets the description localizations for this command.
Inherited from: SharedNameAndDescription
setNameLocalization(locale: LocaleString) : this
Sets a name localization for this command.
Inherited from: SharedNameAndDescription
setNameLocalizations(localizedNames: LocalizationMap | null) : this
Sets the name localizations for this command.
Inherited from: SharedNameAndDescription
setRequired(required: boolean) : this
Sets whether this option is required.
Inherited from: ApplicationCommandOptionBase
toJSON() : APIApplicationCommandChannelOption
Serializes this builder to API-compatible JSON data.
addChannelTypes(...channelTypes: RestOrArray<ApplicationCommandOptionAllowedChannelTypes>) : this
Adds channel types to this option.
Inherited from: ApplicationCommandOptionChannelTypesMixin