> For the complete documentation index, see [llms.txt](https://docs.badger.store/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.badger.store/fivem-discord-scripts/badger_discord_api/checkequal.md).

# CheckEqual

## CheckEqual

<mark style="color:blue;">`GET`</mark> `exports.Badger_Discord_API:CheckEqual(role1, role2)`

This export allows you to check if a Discord role ID is equal to a Discord role Name, this can also check if a Discord role ID is equal to Badger\_Discord\_API config's RoleList role reference.

#### Query Parameters

| Name  | Type   | Description                                            |
| ----- | ------ | ------------------------------------------------------ |
| role2 | number | The 2nd role ID you are comparing.                     |
| role2 | string | The 2nd role name or role reference you are comparing. |
| role1 | number | The role ID.                                           |
| role1 | string | The role name or role reference.                       |

{% tabs %}
{% tab title="200 Returns true if the roles are considered equal:" %}

```
true
```

{% endtab %}

{% tab title="404 Returns false if the roles are not considered equal:" %}

```
false
```

{% endtab %}
{% endtabs %}
