> ## Documentation Index
> Fetch the complete documentation index at: https://docs.melonly.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Discord Conditions

> Learn how Discord condition blocks check roles and permissions and return true or false.

***

Discord Conditions check a user's Discord roles or permissions and return true or false.\
Use them so actions only run when the Discord requirements are met.

<Frame caption="Discord conditions in the block library">
  <img className="block" src="https://mintcdn.com/melonly/Icf-MhWcCce5bv5F/images/Dashboard/Workflows/lib-discord-conditions.png?fit=max&auto=format&n=Icf-MhWcCce5bv5F&q=85&s=1ddc6f60a94de23caeb247b4e52bd591" alt="The block library searched for Discord Role, showing Does User Have Discord Role with its Has Role and Does Not Have Role outputs" style={{ borderRadius: '0.75rem' }} width="1918" height="989" data-path="images/Dashboard/Workflows/lib-discord-conditions.png" />
</Frame>

***

## Blocks

<Tabs>
  <Tab title="Does User Have Discord Role">
    ## Does User Have Discord Role

    The Does User Have Discord Role block checks whether or not a user has a specific role.

    ### What Does It Do?

    This block evaluates the selected user and role, returning a boolean value based on whether the user has that role.

    <Card title="">
      **Input**

      * **User**: The Discord user to check.
      * **Role**: The Discord role to verify.

      **Output**

      * **Boolean**: True if the user has the role, false if not.
    </Card>
  </Tab>

  <Tab title="Has Discord Permission">
    ## Has Discord Permission

    The Has Discord Permission block checks whether or not a user has a specific Discord permission.

    ### What Does It Do?

    This block evaluates the selected user and permission, returning a boolean value based on whether the user has that permission.

    <Card title="">
      **Input**

      * **User**: The Discord user to check.
      * **Permission**: The Discord permission to verify.

      **Output**

      * **Boolean**: True if the user has the permission, false if not.
    </Card>
  </Tab>
</Tabs>

***

<Card title="Need help?" icon="headset" href="https://melonly.xyz/discord">
  Still have questions? Join our Discord server for support from the Melonly Team.
</Card>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.