Rocket Networking Docs🚀
  • About this Documentation
  • Basics of Rocket Networking
    • Room based multiplayer (Auto State Sharing)
      • Clients and clientId
      • Entities
      • Smart Entities
    • Single Message Sharing
    • Persistent Objects on the Server
    • Easy Matchmaking
    • Discord Server Integration
    • Database for your Account
    • Server Side Scripting
    • Global Multiplayer(Cross play)
  • Rocket Networking Code
    • Connecting and Disconnecting
      • ConnectToServer()
      • callback_ConnectToServer()
      • DisconnectFromServer()
      • callback_DisconnectFromServer()
    • Rooms
      • ChangeRoom( new_room_name )
      • callback_ChangeRoom()
      • LeaveRoom()
      • callback_LeaveRoom()
      • ShowAllClientsInRoom(room_name ) and callback_ShowAllClientsInRoom()
      • ShowAllRooms() and callback_ShowAllRooms()
    • Private Messaging
      • SendEventToClient
      • callback_ReceivedEvent
      • SendMessageToClient
      • callback_ReceivedMessage
    • Persistent Objects
      • CreatePersistentObject(roomId , persistentObjectStruct)
      • callback_CreatedPersistentObject()
      • EditPersistentObject(persistentObjectId , new_persistentObjectStruct)
      • DestroyPersistentObject(persistentObjectId)
      • ShowPersistentObjectsInRoom(room_name)
      • callback_ShowAllPersistentObjectsInRoom(array_of_persistent_objects)
    • Database Functions
      • SetSimpleData()
      • callback_SetSimpleData()
      • ReadSimpleData()
      • callback_ReadSimpleData()
      • AddToSimpleData()
      • callback_AddToSimpleData()
      • DeleteSimpleData()
    • Discord Integration
      • SendDiscordMessage()
      • callback_DiscordMessageReceived()
    • AI Functions
      • CallSimpleAI
      • callback_CallSimpleAI
      • CallGeneralAI
      • callback_CallGeneralAI
  • KickPlayer(client_id)
  • ViewServerActivity()
    • callback_ViewServerActivity()
  • oBrain - ping and pseudoHost
  • Admin Callbacks
  • API
    • Database
    • AI
  • Server Side Scripting
    • Basics
    • Understand the heirarchy on the server
    • Create a Persistent Object from Server
    • Important Scripts
      • "step" Script format
      • "client_sent_event" Script format
      • "game_server_created" Script format
    • Send Event to a Client from Server
    • Database Functions on Server
    • AI Functions on the Server
Powered by GitBook
On this page
  • Add RNet Bot to your Discord Server
  • Authorize RNet to see which Discord Servers you own
  • Select which servers you authorize RNet bot to function in
  • Get Discord Server ID and Channel IDs
  1. Rocket Networking Code

Discord Integration

PreviousDeleteSimpleData()NextSendDiscordMessage()

Last updated 1 year ago

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

Use this link to add the bot to any server

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

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

Get Discord Server ID and Channel IDs

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

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!

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