> 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!


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://rocket-networking.gitbook.io/docs/rocket-networking-code/discord-integration.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
