> From the BotGhost docs: https://botghost.com/docs/custom-commands-and-events/options/text-option
> Every page: https://botghost.com/docs/llms.txt

# Text Option

![](https://botghost.com/docs/content/assets/workspace/image_2024-06-07_184243639.png)

This block is a plain text option which allows you input a text value when entering your command on Discord.

![](https://botghost.com/docs/content/assets/workspace/image_2024-06-07_152906910.png)

You can retrieve the variable of the option via the **Clipboard** or the block itself. The format of the variable is `{option_optionname}`, where `optionname` is the [name](https://botghost.com/docs/custom-commands-and-events/options/text-option#option-name) of the option.

![](https://botghost.com/docs/content/assets/workspace/image_2024-06-08_123442535.png)

## Option Name

This field requires an input for your unique option name. The designated name will then be the reference for your option variable.

![](https://botghost.com/docs/content/assets/workspace/image_2024-06-07_153049549.png)

## Option Description

The option description field allows you to assign a custom description to your option. It is useful to describe what the option is used for.

![](https://botghost.com/docs/content/assets/workspace/image_2024-06-07_153207575.png)

## Set Required

With this switch you are able to toggle if the option should be required or not in order to execute the command.

![](https://botghost.com/docs/content/assets/workspace/image_2024-06-07_153303596.png)

## Add Choices

This is an optional section is where you can add choices into your option. Choices allow the user to select something from a fixed set of values. There is a maximum number of 25 choices.

![](https://botghost.com/docs/content/assets/workspace/image_2024-06-07_153511286.png)

![](https://botghost.com/docs/content/assets/workspace/image_2024-06-07_180957726.png)

## Autocomplete

Autocomplete is a feature for slash command text options that shows users a list of suggestions as they type. It makes commands easier to use, reduces typing errors, and creates a smoother experience.

Unlike [choices](https://botghost.com/docs/custom-commands-and-events/options/text-option#add-choices), the autocomplete feature will add choices to the action that are not required to be the same, meaning you can follow them, but it's not mandatory.

![](https://botghost.com/docs/content/assets/workspace/image%20(12).png)

Autocomplete can be configured by pressing the "Configure Autocomplete" button located in the settings of the text option.

![](https://botghost.com/docs/content/assets/workspace/image%20(10).png)

**Basic Mode**

The basic settings have been enabled by default when you start to configure autocomplete.

![](https://botghost.com/docs/content/assets/workspace/image%20(11).png)

### Choices

Choices can be addded by pressing the "Add Autocomplete Choice" in the image above.

#### Label

The label is what's shown as choice to the user when they use the command.

![](https://botghost.com/docs/content/assets/workspace/image%20(12).png)

#### Value

The value is what is returned as the `{option_optionname}` variable. The value is not visible to the user and can be something else than the label.

**Bulk Mode**

To access bulk mode, you have to enable it in the top of the autocomplete configuration.

![](https://botghost.com/docs/content/assets/workspace/image%20(13).png)

### Bulk Choices

Bulk choices can be added by pasting the lable and value seperated with a comma. An example can be found below:

```
<code>label1,value1
label2,value2
label3,value3
</code>
```

When you have added the choices, simple press the "Parse and Replace Choices" button below the field. The choices will then also be visible when in Basic Mode.

### Time zone suggestions

Instead of your own choices, a text option can suggest time zones. In the option's Autocomplete settings, set **Where the suggestions come from** to **Time zones** (on the older settings panel, turn on **Suggest time zones**). As members type a city, a country or a zone's name, Discord shows up to 25 matching time zones with the time there now, with zones in their own country first.

The `{option_optionname}` variable is the zone's name, like `Europe/London`, or whatever they typed if they didn't pick one. While time zone suggestions are on, your own autocomplete choices and fixed [choices](https://botghost.com/docs/custom-commands-and-events/options/text-option#add-choices) aren't used.
