> 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="https://1224219250-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvYO9I4EKmgDF783aI7J4%2Fuploads%2FgsUAFSBKsJ1jskR9WymB%2Fimage.png?alt=media&amp;token=fbf7c12c-9d7c-4fc5-b19c-a0a1be4d83b6" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1224219250-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvYO9I4EKmgDF783aI7J4%2Fuploads%2FJnha4PMpWiIMQKgAbDKe%2Fimage.png?alt=media&amp;token=db039fbe-5b8e-442a-ad32-a5f03f67092a" 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="https://1224219250-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvYO9I4EKmgDF783aI7J4%2Fuploads%2FAogcu2fJKJGAz2HChT6K%2Fimage.png?alt=media&amp;token=11a60c30-ea8a-404e-b8c9-05cb68a54f44" 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="https://1224219250-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvYO9I4EKmgDF783aI7J4%2Fuploads%2FVKXzBGJc4n30nengkNyQ%2Fimage.png?alt=media&amp;token=f19efdbb-5983-4b29-8126-5118cd51c012" 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!
