🗣️ (required) required (type) option with name (name) description (description)
In Discord → Interactions → Application Commands
Represents an option of a command. Pass this either individually or as part of a list to create slash command….
Only valid in: discord command create
Requires the following blocks to be present in the project: discord login
Parameters
Parameter name | Parameter type | Required? | Description |
---|---|---|---|
required | any | ✓ | Whether this option is required, i.e. must be filled in order to call. |
type | any | ✓ | The type of value this option should hold. |
name | String | ✓ | A user-visible name for this option. |
description | String | ✓ | A user-visible description of this option. |
Output
command arg - The option.