Features:
- Native IPC connection to Discord (Windows named pipes, Unix sockets)
- Full presence customization (details, state, images, timestamps)
- Party support for multiplayer games
- Invite secrets support (match, join, spectate)
- Helper methods for editor and game presence
- GDScript autoload manager template
- Cross-platform support (Windows, macOS, Linux)
Usage:
DiscordRPC.initialize('YOUR_APP_ID')
DiscordRPC.set_game_presence('My Game', 'Playing Level 1')
DiscordRPC.update_presence()
Also renamed project.godot to project.aethex for showcase games
14 lines
303 B
Python
14 lines
303 B
Python
#!/usr/bin/env python
|
|
|
|
Import("env")
|
|
Import("env_modules")
|
|
|
|
env_discord = env_modules.Clone()
|
|
|
|
# Add discord-rpc include path
|
|
env_discord.Prepend(CPPPATH=["#modules/discord_rpc"])
|
|
|
|
# Module source files
|
|
module_obj = []
|
|
env_discord.add_source_files(module_obj, "*.cpp")
|
|
env.modules_sources += module_obj
|