ChatInputCommandMentionableOption

export declare class ChatInputCommandMentionableOption extends ApplicationCommandOptionBase
export declare class ChatInputCommandMentionableOption extends ApplicationCommandOptionBase
A chat input command mentionable option.
constructor()
Constructs a new instance of the ChatInputCommandMentionableOption class
NameTypeOptionalDescription
ProtectedStaticReadonly
predicate:z.ZodTypeAny
clearDescriptionLocalization(locale):this
Clears a description localization for this command.
NameTypeOptionalDescription
localeLocaleStringNoThe locale to clear
Inherited from SharedNameAndDescription
clearDescriptionLocalizations():this
Clears all description localizations for this command.
Inherited from SharedNameAndDescription
clearNameLocalization(locale):this
Clears a name localization for this command.
NameTypeOptionalDescription
localeLocaleStringNoThe locale to clear
Inherited from SharedName
clearNameLocalizations():this
Clears all name localizations for this command.
Inherited from SharedName
setDescription(description):this
Sets the description of this command.
NameTypeOptionalDescription
descriptionstringNoThe description to use
Inherited from SharedNameAndDescription
setDescriptionLocalization(locale, localizedDescription):this
Sets a description localization for this command.
NameTypeOptionalDescription
localeLocaleStringNoThe locale to set
localizedDescriptionstringNoThe localized description for the given locale
Inherited from SharedNameAndDescription
setDescriptionLocalizations(localizedDescriptions):this
Sets the description localizations for this command.
NameTypeOptionalDescription
localizedDescriptionsPartial<Record<LocaleString, string>>NoThe object of localized descriptions to set
Inherited from SharedNameAndDescription
setName(name):this
Sets the name of this command.
NameTypeOptionalDescription
namestringNoThe name to use
Inherited from SharedName
setNameLocalization(locale, localizedName):this
Sets a name localization for this command.
NameTypeOptionalDescription
localeLocaleStringNoThe locale to set
localizedNamestringNoThe localized name for the given locale
Inherited from SharedName
setNameLocalizations(localizedNames):this
Sets the name localizations for this command.
NameTypeOptionalDescription
localizedNamesPartial<Record<LocaleString, string>>NoThe object of localized names to set
Inherited from SharedName
setRequired(required?):this
Sets whether this option is required.
NameTypeOptionalDescription
requiredbooleanYesWhether this option should be required
Inherited from ApplicationCommandOptionBase
toJSON(validationOverride?):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.
NameTypeOptionalDescription
validationOverridebooleanYesForce validation to run/not run regardless of your global preference
Inherited from ApplicationCommandOptionBase