> For the complete documentation index, see [llms.txt](https://rocket-networking.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://rocket-networking.gitbook.io/docs/rocket-networking-code/discord-integration.md).

# Discord Integration

Rocket Networking gives you a discord bot that you can set up and customise with low code and add to your Discord Servers.

## Add RNet Bot to your Discord Server&#x20;

Use this link to add the bot to any server

<https://discord.com/oauth2/authorize?client_id=1211409963268972664&permissions=19456&scope=bot+applications.commands>

## Authorize RNet to see which Discord Servers you own

Go to your dashboard and follow this auth flow after clicking on the Discord Integration Button

<figure><img src="/files/4uW3pDDXQke1sMyEK143" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/DsuKZqDSbX6X6pexssF6" alt="" width="375"><figcaption></figcaption></figure>

## Select which servers you authorize RNet bot to function in

Think of this as the master key. You can directly copy the Discord Server ID from here actually

<figure><img src="/files/71FRqw45nIAj525FI0We" alt=""><figcaption></figcaption></figure>

## Get Discord Server ID and Channel IDs

{% embed url="<https://youtu.be/HjkRZy5d_qM?si=Hjzbq2XbmDv2KwD8>" %}

First Make sure discord dev mode is on and then once you right click on a server or a channel, you can copy its ID.

Start by Going into Scripts/Rocket Networking/Options.gml and set this to your Discord Server ID

<figure><img src="/files/vuRKZpUuaAiRGku5Q0k7" alt=""><figcaption></figcaption></figure>

You can use this bot to

1. Send Messages from Gamemaker to your Discord Server\
   Using `SendDiscordMessage()`
2. Receive messages (from other users) from Discord server into Gamemaker\
   By cutomising `callback_DiscordMessageReceived()`

This allows for some really cool integrations!
