# Role Condition

## Role Condition

Run actions based on the roles of the user.

## Run Multiple Actions

Should the condition run multiple actions if multiple conditions are met.

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FZLPGwvSDgl3F4XKvcf1E%2FScreenshot%202023-02-13%20at%201.54.06%20PM.png?alt=media&#x26;token=650a4ed3-76c3-4455-85ea-9eda8f4255cf" alt=""><figcaption></figcaption></figure>

## User Target

Which user to check the roles of. Check the table below:

| Action                    | Response                                                            |
| ------------------------- | ------------------------------------------------------------------- |
| User who used the command | Check the roles of the user who executed the command.               |
| User Option               | Check the roles of the selected user in the User Option field.      |
| User ID                   | Check the roles of a discord member via the ID previously provided. |

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FAk2TGE44muOEjad8V92K%2FScreenshot%202023-02-13%20at%201.58.28%20PM.png?alt=media&#x26;token=a472e4c9-3f68-440e-88ba-d69cf07f385d" alt=""><figcaption></figcaption></figure>

## Role

The role to base this condition on.

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FdFidBDc8yd9NIWuNZdV3%2FScreenshot%202023-02-13%20at%201.59.17%20PM.png?alt=media&#x26;token=9719d87d-1c80-45ae-8cb0-e821e90ffd3b" alt=""><figcaption></figcaption></figure>

Not seeing your role? Click the Refresh button shown below:

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FSq49EGOAh3zWFJqxd8xQ%2FScreenshot%202023-02-13%20at%202.00.02%20PM.png?alt=media&#x26;token=5824ac9b-2333-473e-b26b-ec0e26cdabf5" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
Click the Add Condition block to add the block to your builder.
{% endhint %}

{% hint style="info" %}
Click the block on the builder to access the following menu.
{% endhint %}

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FtCgm5u0Iloxa8KJxK3s3%2FScreenshot%202023-02-13%20at%202.02.32%20PM.png?alt=media&#x26;token=4e5409d4-70bc-4e01-8860-0ad62398277d" alt=""><figcaption></figcaption></figure>

## Role ID

Enter the value for this condition. Connected actions will be run if the user has this role. The role you added in the Role Condition will automatically be put in this field.

## Run when the user DOES NOT have this role

Change this condition to run when the user DOES NOT have this role.

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FiXZOMQoGzzdDb9wPFT8y%2FScreenshot%202023-02-13%20at%202.08.41%20PM.png?alt=media&#x26;token=9e046059-a6e1-415a-b414-91a901ce6754" alt=""><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%2F0rmQULNFH4SLWnzQzJ76%2FScreenshot%202023-02-13%20at%202.02.01%20PM.png?alt=media&#x26;token=b2848cc2-17a7-4e5b-a937-651550e9ff9e" alt=""><figcaption></figcaption></figure>
