# Discord Integration

### Below is a **concise** explanation of why you might use both a **Discord Bot Token** and a **Discord Webhook** in your FiveM script:

* <mark style="color:yellow;">**Discord Bot Token:**</mark> Lets your FiveM script access more advanced Discord features—like fetching live profile pictures, checking user roles, or responding to commands. This enables interactive functions, such as admin commands directly from Discord.<br>
* <mark style="color:yellow;">**Discord Webhook:**</mark> Ideal for sending quick, one-way notifications (e.g., server logs, player join events) to a specific channel without the overhead of running a full bot.


---

# 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://risk-scripts.gitbook.io/risk-scripts/discord-integration.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.
