class ChatInputCommandUserOption
extends
ApplicationCommandOptionBaseexport declare class ChatInputCommandUserOption extends ApplicationCommandOptionBase
A chat input command user option.
protectedreadonlyApplicationCommandOptionBaseData & SharedNameAndDescriptionData data :
Inherited from: ApplicationCommandOptionBase
protectedstaticreadonlyz.ZodTypeAny predicate :
Inherited from: ApplicationCommandOptionBase
clearDescriptionLocalizationlocale: Locale) : this (
Clears a description localization for this command.
Inherited from: SharedNameAndDescription
Clears all description localizations for this command.
Inherited from: SharedNameAndDescription
clearNameLocalizationlocale: Locale) : this (
Clears a name localization for this command.
Inherited from: SharedName
Clears all name localizations for this command.
Inherited from: SharedName
setDescriptiondescription: string) : this (
Sets the description of this command.
Inherited from: SharedNameAndDescription
Sets a description localization for this command.
Inherited from: SharedNameAndDescription
Sets the description localizations for this command.
Inherited from: SharedNameAndDescription
Sets a name localization for this command.
Inherited from: SharedName
Sets the name localizations for this command.
Inherited from: SharedName
setRequiredrequired?: boolean) : this (
Sets whether this option is required.
Inherited from: ApplicationCommandOptionBase
toJSONvalidationOverride?: boolean) : APIApplicationCommandBasicOption (
Serializes this builder to API-compatible JSON data.Note that by disabling validation, there is no guarantee that the resulting object will be valid.
Inherited from: ApplicationCommandOptionBase