# Option Blocks

These blocks are conditions that will be checked when your command or interaction tries to run and will show an error message instead of running action blocks.

<details>

<summary>Ephemeral Response (Hidden)</summary>

<div align="left"><figure><img src="https://3037285907-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRccMugOWIfoYc8qkBKFf%2Fuploads%2FLGXdFFReniCt2YLMIKUa%2Fimage.png?alt=media&#x26;token=74f5a0ac-cd6a-44b3-a6ef-9a787fb6bcb0" alt="" width="191"><figcaption></figcaption></figure></div>

App messages will be hidden from other users so that only you can see them.

<div align="left"><figure><img src="https://3037285907-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRccMugOWIfoYc8qkBKFf%2Fuploads%2Fgni0Xg66sqCpJv1AEGky%2Fimage.png?alt=media&#x26;token=a528ab6f-9a01-417b-94c4-8ac825fefbc6" alt="" width="326"><figcaption></figcaption></figure></div>

</details>

<details>

<summary>Allow User Apps</summary>

<div align="left"><figure><img src="https://3037285907-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRccMugOWIfoYc8qkBKFf%2Fuploads%2FNJEJeVgPgtdmABtMFfDq%2Fimage.png?alt=media&#x26;token=3a1ff7ba-560e-42b7-8958-9e4a4b700518" alt="" width="148"><figcaption></figcaption></figure></div>

This will allow your app to send messages in private channels, groups or servers that have not added your app.

Users can install your app on their account and can run interactions as User Apps.

{% hint style="info" %}
See the User Apps Guide for more info.
{% endhint %}

</details>

<details>

<summary>Open Modal</summary>

<div align="left"><figure><img src="https://3037285907-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRccMugOWIfoYc8qkBKFf%2Fuploads%2F3tLGkx2CGhUbGdcIDT3t%2Fimage.png?alt=media&#x26;token=720b36be-fc25-4fb0-9295-b63f996f8825" alt="" width="201"><figcaption></figcaption></figure></div>

This will stop your command from running and open up an interaction modal instead.

</details>

<details>

<summary>Allow Mentions</summary>

<div align="left"><figure><img src="https://3037285907-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRccMugOWIfoYc8qkBKFf%2Fuploads%2FkBDwZWsRuiW5OYJwdSsH%2Fimage.png?alt=media&#x26;token=cd5f2645-f1aa-409f-8a9a-5a8442c99dcf" alt="" width="375"><figcaption></figcaption></figure></div>

You can choose which mention types your app can send with the command, by default all mentions are disabled.

</details>

<details>

<summary>Nsfw Channel Only</summary>

<div align="left"><figure><img src="https://3037285907-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRccMugOWIfoYc8qkBKFf%2Fuploads%2Fx5Dkn5qypT5C0i1C0DyO%2Fimage.png?alt=media&#x26;token=d1240b8b-0297-41fc-808a-93941b53bc42" alt="" width="177"><figcaption></figcaption></figure></div>

This will restrict your command to only run in Nsfw marked channels.

</details>

<details>

<summary>App Owner/Developer Only</summary>

<div align="left"><figure><img src="https://3037285907-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRccMugOWIfoYc8qkBKFf%2Fuploads%2F5EjgWP7sRbh1bDadwwim%2Fimage.png?alt=media&#x26;token=b5c8ed44-1b81-4777-8029-f3d03ea61332" alt="" width="188"><figcaption></figcaption></figure></div>

This will restrict your command from being run by any users and will check the bot owner or Discord app team members that should be allowed.

</details>

<details>

<summary>Server Owner Only</summary>

<div align="left"><figure><img src="https://3037285907-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRccMugOWIfoYc8qkBKFf%2Fuploads%2FY8r911zj6xIxAzJIsCce%2Fimage.png?alt=media&#x26;token=e8f55eba-cc5c-4101-ae33-3287f14e87dd" alt="" width="178"><figcaption></figcaption></figure></div>

This will restrict the command to only be run by server owners.

</details>

<details>

<summary>Require Server/Channel</summary>

<div align="left"><figure><img src="https://3037285907-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRccMugOWIfoYc8qkBKFf%2Fuploads%2FokDLU4bVOkvv4HkGYx1J%2Fimage.png?alt=media&#x26;token=94b422f1-7085-4787-a03a-f9364c662c7a" alt="" width="217"><figcaption></figcaption></figure></div>

You can limit what context type your command can be run from.

</details>

<details>

<summary>Require Discord App Premium</summary>

<div align="left"><figure><img src="https://3037285907-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRccMugOWIfoYc8qkBKFf%2Fuploads%2FAPHwotIWDqG9sc03YhKB%2Fimage.png?alt=media&#x26;token=80cc6fbf-1e47-4274-8b74-690dd86fe3eb" alt="" width="254"><figcaption></figcaption></figure></div>

This will restrict your command so that only users who have purchased an app subscription can use the command.

</details>

<details>

<summary>Require Server/Channel Permission</summary>

<div align="left"><figure><img src="https://3037285907-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRccMugOWIfoYc8qkBKFf%2Fuploads%2FYOxl98Jqz8jxoc86MDcm%2Fimage.png?alt=media&#x26;token=f308ec2c-b502-4491-9b0b-5162c18d30de" alt="" width="375"><figcaption></figcaption></figure></div>

This will restrict your command so that only users with these permissions can run the command.

</details>
