A chat input command attachment option.
Extends
ApplicationCommandOptionBaseProtectedReadonly
Inherited from ApplicationCommandOptionBase
Inherited from ApplicationCommandOptionBase
Clears a description localization for this command.
Name | Type | Optional | Description |
---|---|---|---|
locale | LocaleString | No | The locale to clear |
Clears all description localizations for this command.
Inherited from SharedNameAndDescriptionClears a name localization for this command.
Name | Type | Optional | Description |
---|---|---|---|
locale | LocaleString | No | The locale to clear |
Clears all name localizations for this command.
Inherited from SharedNameSets the description of this command.
Name | Type | Optional | Description |
---|---|---|---|
description | string | No | The description to use |
Sets a description localization for this command.
Name | Type | Optional | Description |
---|---|---|---|
locale | LocaleString | No | The locale to set |
localizedDescription | string | No | The localized description for the given locale |
Sets the description localizations for this command.
Name | Type | Optional | Description |
---|---|---|---|
localizedDescriptions | Partial<Record<LocaleString, string>> | No | The object of localized descriptions to set |
Sets the name of this command.
Name | Type | Optional | Description |
---|---|---|---|
name | string | No | The name to use |
Sets a name localization for this command.
Name | Type | Optional | Description |
---|---|---|---|
locale | LocaleString | No | The locale to set |
localizedName | string | No | The localized name for the given locale |
Sets the name localizations for this command.
Name | Type | Optional | Description |
---|---|---|---|
localizedNames | Partial<Record<LocaleString, string>> | No | The object of localized names to set |
Sets whether this option is required.
Name | Type | Optional | Description |
---|---|---|---|
required | boolean | Yes | Whether this option should be required |
Serializes this builder to API-compatible JSON data.Note that by disabling validation, there is no guarantee that the resulting object will be valid.
Name | Type | Optional | Description |
---|---|---|---|
validationOverride | boolean | Yes | Force validation to run/not run regardless of your global preference |