Utillity or other stuff
Methods
Run callbacks
This runs normaly inside the Autoload DiscordRPCLoader
wich should be automatically added by the plugin. If not this needs to be added to use most features of the plugin. In older versions of the plguin known as discord_sdk.run_callbacks()
.
Register game
Register Steam
Registers your game’s Steam app id for the protocol steam://run-game-id/<id>
when you are shipping your game on steam. Used when Discord wants to launch your game or to push the Discord overlay to your game.
Requires a steamID int
value
Register command
Registers your game’s launch command. Used when Discord wants to launch your game or to push the Discord overlay to your game. Only really makes sense when the command works on the given OS
Requires a launch command String
value