# Slash command

> Start a flow when someone uses a slash command.

Source: https://docs.buildcord.dev/nodes/triggers/slash-command/

`trigger.command` runs when someone uses this command in a server.

## Settings

| Setting | What it does |
| --- | --- |
| Name | The command's name. It can be up to three words, such as `market config set`. Later words make a subcommand, which Buildcord registers under the first word. |
| Description | What Discord shows next to the command. |
| Options | The inputs the command asks for. |

### Options

Each option has:

- A **name**, which you use in steps as `{option.name}`.
- A **description**.
- A **type**: text, whole number, number, true or false, member, channel, role or file. A file option is the address of what was uploaded, ready for a message's files, an embed's image or [Save a file](https://docs.buildcord.dev/nodes/variables-and-data/save-a-file).
- Whether it's **required**.
- For a text option, an optional list of **choices**. Members can then pick only those values.

## Ways out

`out`.

## Notes

- Buildcord registers your commands with Discord each time you deploy.
- Two commands can't share a name, and every command needs a flow. A command flow that no command registers can never run, so the checker warns you.
- Commands work on the commands-only plan. They don't need the gateway.

## Example

A `/give` command with a required **member** option and a required **amount** option can use `{option.member}` and `{option.amount}` in later steps.

## Related

- [Reply](https://docs.buildcord.dev/nodes/messages/reply)
- [Permissions](https://docs.buildcord.dev/nodes/conditions/permissions)
- [Token reference](https://docs.buildcord.dev/reference/tokens)
