Install Asset
Install via Godot
To maintain one source of truth, Godot Asset Library is just a mirror of the old asset library so you can download directly on Godot via the integrated asset library browser
![Discord Game SDK hero image](https://img.godotassetlibrary.com/5qYGxdO6x9pD9GjG_QBAkPDX1b96cp_tFkPqSeknjkU/rs:fit:1920:1080:0/g:no/aHR0cHM6Ly9yYXcuZ2l0aHVidXNlcmNvbnRlbnQuY29tL3NhbXNmYWNlL2dvZG90LWRpc2NvcmQtZ2FtZS1zZGsvbWFzdGVyL2ljb24ucG5n.webp)
Quick Information
![Discord Game SDK icon image](https://img.godotassetlibrary.com/LAA-4Gu9AgBDk7lbtoa7B7rT24CvYBCXqke0aHjwjJc/rs:fit:50:50:0/g:no/aHR0cHM6Ly9yYXcuZ2l0aHVidXNlcmNvbnRlbnQuY29tL3NhbXNmYWNlL2dvZG90LWRpc2NvcmQtZ2FtZS1zZGsvbWFzdGVyL2ljb24ucG5n.webp)
Use the Discord Game SDK from GDSscript. Supports Windows, Linux & MacOS (x86_x64 only).Features:- Set Rich Presence- Start Game Lobbies using Discord Networking- Invite friends to Lobbies through Discord.
Godot-Discord-Game-SDK 🥏🎶
Godot Discord Game SDK integration using GDNative. Supports 💰Windows & 🐧Linux.
Getting Started
- Download the example project.
- Download the Discord Game SDK following the offical Discord Game SDK documenation and extract any .so, .dll or .dylib files into the sample project's addons/discord_game_sdk directory.
- Start the sample project! The Godot API is verbatim almost to the offical API so just follow the offical documenation.
Or checkout this little tutorial on getting started:
Snippets
Updating activity
func update_activity() -> void:
var activity = Discord.Activity.new()
activity.set_type(Discord.ActivityType.Playing)
activity.set_state("Reached: 2-2")
activity.set_details("Loadout: grenade + rail gun")
var assets = activity.get_assets()
assets.set_large_image("zone2")
assets.set_large_text("ZONE 2 WOOO")
assets.set_small_image("capsule_main")
assets.set_small_text("ZONE 2 WOOO")
var result = yield(Discord.activity_manager.update_activity(activity), "result").result
if result != Discord.Result.Ok:
push_error(result)
Create lobby
func create_lobby():
var transaction := Discord.lobby_manager.get_lobby_create_transaction()
transaction.set_capacity(2)
transaction.set_type(Discord.LobbyType.Private)
transaction.set_locked(false)
var result = yield(Discord.lobby_manager.create_lobby(transaction), "result")
if result.result != Discord.Result.Ok:
push_error(result.result)
return
var lobby = result.data
Discord.lobby_manager.send_lobby_message(lobby.get_id(), "hello people!")
Use the Discord Game SDK from GDSscript. Supports Windows, Linux & MacOS (x86_x64 only).
Features:
- Set Rich Presence
- Start Game Lobbies using Discord Networking
- Invite friends to Lobbies through Discord.
Reviews
Quick Information
![Discord Game SDK icon image](https://img.godotassetlibrary.com/LAA-4Gu9AgBDk7lbtoa7B7rT24CvYBCXqke0aHjwjJc/rs:fit:50:50:0/g:no/aHR0cHM6Ly9yYXcuZ2l0aHVidXNlcmNvbnRlbnQuY29tL3NhbXNmYWNlL2dvZG90LWRpc2NvcmQtZ2FtZS1zZGsvbWFzdGVyL2ljb24ucG5n.webp)
Use the Discord Game SDK from GDSscript. Supports Windows, Linux & MacOS (x86_x64 only).Features:- Set Rich Presence- Start Game Lobbies using Discord Networking- Invite friends to Lobbies through Discord.