# Permission Condition

## Permission Condition

Run actions based on the discord server permissions of a user.

{% hint style="warning" %}
The bot must have Manage Roles permission to be able to check server permissions
{% endhint %}

## 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%2FzsIh2mUVDDew1NSCzHfv%2F01074FFF-52A3-4640-AB70-B31BB321944C.jpeg?alt=media&#x26;token=3f95e6a0-96a7-42ce-b783-9c4deb5b272d" alt=""><figcaption></figcaption></figure>

## User Target

Which user to check the permissions of. See the chart below:

| Action                    | Response                                        |
| ------------------------- | ----------------------------------------------- |
| User who used the command | The executer of the command.                    |
| User Option               | The user option defined in the Options Section. |
| User ID                   | The Discord ID of the user.                     |

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FN9bHastHgFFQsQl29z2a%2F9CAD959A-BE8E-4C3F-801D-CD03AD53C24D.jpeg?alt=media&#x26;token=a17a63bf-aebc-4ef9-846a-5a2b8702ce3c" alt=""><figcaption></figcaption></figure>

## Permissions

The permissions to base this condition on. You can select multiple permissions.

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FdL0M414XNFZC2rcaJRNr%2F2E42D08C-5606-405B-9DC7-CD08C6E350B1.jpeg?alt=media&#x26;token=b3408e9d-b4a2-46c6-8021-5b06224ee4b1" alt=""><figcaption></figcaption></figure>

## Condition Type

The condition type. Whether to check for all or at least one permission.

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FurOKuEkcyaHcBgpqAfsz%2FC75A653C-0680-43ED-A98C-358929B8CD72.jpeg?alt=media&#x26;token=dc861b01-4f61-47d7-9c10-bf31e64eb307" alt=""><figcaption></figcaption></figure>

## Add Condition

Click this to add the condition block to your builder.

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FLHiIdVDSa9XTADe7h84t%2FE1D9EB16-003D-4A95-8226-C1212EAA0EE8.jpeg?alt=media&#x26;token=ad78884d-1721-4a4e-9666-a2841416d110" 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%2FQG6QCcZfhe4uo1OPob4L%2FScreenshot%202023-02-13%20at%201.30.25%20PM.png?alt=media&#x26;token=07e4cb24-10e7-4452-b90d-bb75de89ac72" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
The bot must have Manage Roles permission to be able to check server permissions
{% endhint %}
