> For the complete documentation index, see [llms.txt](https://altitude-dev.gitbook.io/doc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://altitude-dev.gitbook.io/doc/global-functions/discord-sync-api.md).

# Discord Sync API

The INFINITYCORE framework uses the Discord API to receive real-time player presence in rich presence on your Discord or on a third-party Discord.

It also allows you to detect the role used on your Discord server in addition to the game server, so you can link a specific role with your server (e.g. admin, VIP, member, police officer, etc.).

This feature also allows for granting special permissions in the game, as well as being able to speak in OOC with your Discord role tag!

Webhooks are also available to transmit real-time chat on your Discord.

Example: <br>

```lua
    RoleList = { 
        {0,  "🤠^0Player |^0"},
        {1028727011985854525,  "⭕^1CoreTeam |^0"},
        {1041442964381126737,  "⭕^1CoreDev  |^0"},
    },
```
