This mixin holds symbols that can be shared in chat input command options.
Adds attachment options.
| Name | Type | Optional | Description |
|---|---|---|---|
| ...options | RestOrArray<ChatInputCommandAttachmentOption | ((builder: ChatInputCommandAttachmentOption) => ChatInputCommandAttachmentOption)> | No | Options to add |
Adds boolean options.
| Name | Type | Optional | Description |
|---|---|---|---|
| ...options | RestOrArray<ChatInputCommandBooleanOption | ((builder: ChatInputCommandBooleanOption) => ChatInputCommandBooleanOption)> | No | Options to add |
Adds channel options.
| Name | Type | Optional | Description |
|---|---|---|---|
| ...options | RestOrArray<ChatInputCommandChannelOption | ((builder: ChatInputCommandChannelOption) => ChatInputCommandChannelOption)> | No | Options to add |
Adds integer options.
| Name | Type | Optional | Description |
|---|---|---|---|
| ...options | RestOrArray<ChatInputCommandIntegerOption | ((builder: ChatInputCommandIntegerOption) => ChatInputCommandIntegerOption)> | No | Options to add |
Adds mentionable options.
| Name | Type | Optional | Description |
|---|---|---|---|
| ...options | RestOrArray<ChatInputCommandMentionableOption | ((builder: ChatInputCommandMentionableOption) => ChatInputCommandMentionableOption)> | No | Options to add |
Adds number options.
| Name | Type | Optional | Description |
|---|---|---|---|
| ...options | RestOrArray<ChatInputCommandNumberOption | ((builder: ChatInputCommandNumberOption) => ChatInputCommandNumberOption)> | No | Options to add |
Adds role options.
| Name | Type | Optional | Description |
|---|---|---|---|
| ...options | RestOrArray<ChatInputCommandRoleOption | ((builder: ChatInputCommandRoleOption) => ChatInputCommandRoleOption)> | No | Options to add |
Adds string options.
| Name | Type | Optional | Description |
|---|---|---|---|
| ...options | RestOrArray<ChatInputCommandStringOption | ((builder: ChatInputCommandStringOption) => ChatInputCommandStringOption)> | No | Options to add |
Adds user options.
| Name | Type | Optional | Description |
|---|---|---|---|
| ...options | RestOrArray<ChatInputCommandUserOption | ((builder: ChatInputCommandUserOption) => ChatInputCommandUserOption)> | No | Options to add |
Removes, replaces, or inserts options for this command.
Remarks
It's useful for modifying and adjusting order of the already-existing options for this command.
Example
Remove the first option:
Example
Remove the first n options:
Example
Remove the last option:
| Name | Type | Optional | Description |
|---|---|---|---|
| index | number | No | The index to start at |
| deleteCount | number | No | The number of options to remove |
| ...options | ApplicationCommandOptionBase[] | No | The replacing option objects |