# 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.badger.store/fivem-discord-scripts/badger_discord_api/checkequal.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
