# Send a message with a select menu

{% hint style="danger" %}
While the Send a Message with a select menu action block is still available for use in all commands and events, it is considered old and has been replaced by the [send-or-edit-a-message](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message "mention") action block. We advise you to use the [send-or-edit-a-message](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message "mention") block instead, which offers more functionalities and possibilities for your message.
{% endhint %}

{% hint style="warning" %}
If you cannot see the Send a message with a select menu action block in your actions list, disable the [Hide Legacy Reply Actions](https://botghost.com/docs/command-and-event-builder/advanced-options#general) setting.
{% endhint %}

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2Fs58cySFv7FaZcvZnXTcP%2Fimage_2024-05-30_164349907.png?alt=media&#x26;token=66605324-cb37-4530-9f40-d988c9ad2f73" alt=""><figcaption></figcaption></figure>

The "Send a message with select menu" block sends a text or embed message to a channel with a Select Menu. Each option in the Select Menu can have its own attached actions and name.

## Message Type

This message action also has the option of being an embed or plain type.

{% tabs %}
{% tab title="Plain Text Message" %}

<div align="center"><figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FfaH97Icm7mjlpkSS2jUi%2Fimage_2024-05-11_135241942.png?alt=media&#x26;token=b8385a42-1bd1-4b0d-8028-752128b530de" alt="" width="155"><figcaption></figcaption></figure></div>

### Content&#x20;

The content of the action is the actual message that the bot should reply with when the action is triggered. You can use any variable or option in the content of this reply. These can be easily added through the variable selector by clicking the **Clipboard** button.

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FGzOyZOi8VWsbCmsMicll%2Fimage_2024-05-11_140207717.png?alt=media&#x26;token=2201fab7-5d43-4ec0-a68f-5be78d369405" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Embed Message" %}

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FIK4HCSgw0eCm8fZq9Iy4%2Fimage.png?alt=media&#x26;token=e0c4ca31-c226-4352-8dbb-53481ce4497f" alt=""><figcaption></figcaption></figure>

### Author

The author is displayed in the top left of the embed. This can be the author who used the command or any information you wish to display.

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FKGijVTniLkedgVZFZfBW%2Fimage.png?alt=media&#x26;token=7bf1ede7-4286-413f-838f-2c39c3ceb6cb" alt=""><figcaption></figcaption></figure>

### Thumbnail URL

You can include a thumbnail embedded into the Embed Reply. This will display in the top right of the Embed.

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FfjObICaHRp4ebMsKELH5%2Fimage.png?alt=media&#x26;token=54f06916-0e68-4e5e-8a0b-f0b14ca64bb1" alt=""><figcaption></figcaption></figure>

### Title

This is the title you wish to display in your Embed Reply. This will be centered above your Content Block.

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FsybsWs3pz6Ob7KtiQeB4%2Fimage.png?alt=media&#x26;token=796e8b46-5ecf-47dc-b920-2e4b24b82b09" alt=""><figcaption></figcaption></figure>

### Description

The description is the actual message that the bot should reply with when the action is triggered. You can use any variable or option in the content of this reply. These can be easily added through the variable selector by clicking the **Clipboard** button.

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2Ff0sXWmIMiXsZAbZ7ac7R%2Fimage.png?alt=media&#x26;token=a635ec0e-42a0-4508-adc8-8f7ac2678886" alt=""><figcaption></figcaption></figure>

### Image URL

This will display an image in full view under the Content Block.

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2Fm0HYolfJuA8eoeHL9hha%2Fimage.png?alt=media&#x26;token=c783a627-270a-4572-80b2-209aefd7692e" alt=""><figcaption></figcaption></figure>

### Footer

This is the small text at the bottom left of the embed.

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2F2TOTQ1H1W6jvYI2rLMEI%2Fimage.png?alt=media&#x26;token=6b8847e1-e1fa-487b-980a-204f97b18fd5" alt=""><figcaption></figcaption></figure>

### Embed URL

This will display the Title of the embed in blue text, you can click this to open an external page or image.

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FE9FMrfPHsP7UsJTbjf9t%2Fimage.png?alt=media&#x26;token=183cefaa-d116-416e-80ac-e5d1db1b2c0c" alt=""><figcaption></figcaption></figure>

### Color

This is the color shown on the Left Side of the Embed Reply.

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FHG0I8D1ePjSIIsu8edsm%2Fimage.png?alt=media&#x26;token=68c2c967-4f1d-4d86-a020-13f69ea5c0d2" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

## Response Type

{% tabs %}
{% tab title="Reply to the command" %}
When this response type is selected, the message is sent as a reply to the command as show in the image below. These types of responses are able to be hidden by selecting **Hide Replies** in the command settings, which can be accessed by clicking on the root node of the command (the block with the yellow border).

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FR7kwybT4Tk08b4U0gC2V%2Fimage_2024-05-13_211400068.png?alt=media&#x26;token=6bc25149-324f-4847-8b97-767bcd230126" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Send a message to a specific text-channel" %}
The message will be sent to the channel specified in either the Channel ID / [Variable](https://botghost.com/docs/custom-commands-and-events/variables) or the specific channel dropdown, just like the [send-a-message-to-a-channel](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-to-a-channel "mention")action.

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FO38ZFj6WasE4Ut9T2KBr%2Fimage_2024-05-13_211449697.png?alt=media&#x26;token=9a718c41-6419-401c-90d1-8fb2ddff08c4" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Send the message to the channel the command was used in" %}
This response type will send the message to either the channel the command was used in or the channel associated with an event in the event builder. By using this response type, the reply will look like a normal message sent by the bot.

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FHXeNLjv6rY030dPR1vBN%2Fimage_2024-05-13_211635528.png?alt=media&#x26;token=9783cbb6-ce4e-45f7-826c-c0a79a0abe9d" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Edit a message sent by another action" %}
By selecting this response type you are able to edit the message sent by another action in the command or event tree.

To do so you must have another response action that your block can edit the reply of. Select another response action to be edited through the dropdown. A red outline will appear around the block that will be edited.

### Keep Options

If the original message contained one or more buttons / select menus, you can choose to keep components or remove them when editing the message. See the [send-a-message-with-attached-buttons](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-attached-buttons "mention") and [send-a-message-with-a-select-menu](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-a-select-menu "mention") for more information about interaction actions.

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FpXqa6Ul3pOgjz0gQFf8i%2Fimage_2024-05-13_212152785.png?alt=media&#x26;token=8388d330-4809-4746-8c7a-f718e30ff185" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Direct message the user who triggered the command" %}
This response type will be in the form of a direct message that sends privately to the user who has triggered the command, button, or menu or to the user associated with an event in the event builder. By using this response type, the reply will look like a normal message sent by the bot.

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FFBS1SfbUKNLOx8EfrHiV%2Fimage_2024-05-13_213041250.png?alt=media&#x26;token=f70640fe-1865-42dc-b40c-579fd22ceb01" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Direct message using a user option" %}
This response type is specific for the user option and will send a direct message to the user option.

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FlzL5YCctJCJmIbZxUsKp%2Fimage_2024-05-13_213247346.png?alt=media&#x26;token=13046a5d-e544-47c1-89f5-6c63015f3882" alt=""><figcaption></figcaption></figure>

### User option

Paste the variable that returns the user option you want to direct message. Normal variables won't work with this field. Instead, use[#direct-message-using-a-user-id](#direct-message-using-a-user-id "mention")

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2F3TCTmhKmRIHPjWY2Zw6j%2Fimage_2024-05-13_213157294.png?alt=media&#x26;token=b20186fe-e347-415d-8c3b-01299840c58d" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Direct message using a user id" %}
The message will be sent through a direct message to a given [user ID](https://support.discord.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID#h_01HRSTXPS5H5D7JBY2QKKPVKNA) or [variable](https://botghost.com/docs/custom-commands-and-events/variables) that contains the user id. Keep in mind it has to be a plain user ID with no extra symbols or spaces.

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FMFn1TXI243ODiM8gwbCk%2Fimage_2024-05-13_213329149.png?alt=media&#x26;token=76e28a03-7d7e-4209-811f-156ea04233ed" alt=""><figcaption></figcaption></figure>

### User ID

Input the ID of the user to DM. Can either be a variable or an actual ID.

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FdCLoech3xqi2wabCofC7%2Fimage_2024-05-12_185338064.png?alt=media&#x26;token=9d81ebff-e61f-43f2-8912-26e460e02f86" alt="" width="350"><figcaption></figcaption></figure>

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FUu9yA1ZQY7tUkCGmmEWE%2Fimage_2024-05-12_185533404.png?alt=media&#x26;token=220b1851-0f7c-4e5f-b2d5-35aec8a4352a" alt="" width="342"><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

## Reactions

Reactions can be added onto both the Plain Text message or Embed message. Reactions can be added by using the selector field below the area to create the message.&#x20;

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FwrEI7MyCKyMeKTT3d5gy%2Fimage_2024-05-13_163810950.png?alt=media&#x26;token=40e4440b-1fbb-4c19-aaf9-378d694886ff" alt=""><figcaption></figcaption></figure>

These reactions will be automatically added to the message.

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2Fniafi7vNM1dfD6Q62F4m%2Fimage_2024-05-13_163848043.png?alt=media&#x26;token=0bec881c-ea07-4c1d-be67-2e3871e17ba1" alt=""><figcaption></figcaption></figure>

## Placeholder

The placeholder text ([variables](https://botghost.com/docs/custom-commands-and-events/variables) may be used) of the menu. It will look like this:

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2F1fm4k2SKC3AKUfO62PVK%2Fimage_2024-05-13_212415764.png?alt=media&#x26;token=2f513437-82d8-4e4f-82e3-09ffbbba85a5" alt=""><figcaption></figcaption></figure>

## Hide Menu replies

[Menu option](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-a-select-menu/menu-option) responses in the form of replies can be hidden so that only the person who selected the menu option sees them. This can be also chosen separately in any Reply Action by editing the main(yellow) block. By default, replies are shown to everyone.

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2Fkte7yHOo8MyxBqKZLSsT%2Fimage_2024-05-13_163949113.png?alt=media&#x26;token=9390ff5a-c1ea-44f4-a1c7-519c8a0d7fb5" alt=""><figcaption></figcaption></figure>

## Add Menu

You can add another [Menu Option](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-a-select-menu/menu-option) by clicking this:

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FSLwAShIXqDqBS6gdTNea%2Fimage_2024-05-13_164457163.png?alt=media&#x26;token=d32cc8af-dbc8-4a2c-ae93-8706a366a201" alt=""><figcaption></figcaption></figure>

Check out the [Menu Option](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-a-select-menu/menu-option) page for more information about Menu options.

## Optional Variable

You can also create your own variable that can be used anywhere in the command to get the ID of the message sent by the action. This is useful when using [send-an-api-request](https://botghost.com/docs/custom-commands-and-events/actions/api-actions/send-an-api-request "mention") in your command / event and you need the ID of the message. Make sure that the name of the variable does not correspond to the name of a default variable or of an another action.

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FLgsjCYtF6LP3saVLQ5fT%2Fimage_2024-05-13_164701780.png?alt=media&#x26;token=7fa60e1c-449e-40ce-ba5d-59b5fefe8b4b" alt=""><figcaption></figcaption></figure>
