You are viewing a potentially older version of this package.
View all versions.
TCDRP
Trombone Champ Discord Rich Presence
Date uploaded | a year ago |
Version | 1.0.0 |
Download link | gristCollector-TCDRP-1.0.0.zip |
Downloads | 1495 |
Dependency string | gristCollector-TCDRP-1.0.0 |
This mod requires the following mods to function
BepInEx-BepInExPack_TromboneChamp
BepInEx pack for Trombone Champ. Preconfigured and ready to use.
Preferred version: 5.4.21README
Trombone Champ Discord Rich Presence (TCDRP)
The TCDRP is a simple wrapper that allows other mods to access the Discord Rich Presence API through a simple API.
API Documentation
On your mod's initialization (Awake
function):
TCDRP.API.InitRPC(clientId);
Setting an activity
TCDRP.API.SetActivity(Plugin.clientId, state:"Choosing a save");
Note: You can set variables as mentioned in Discord documentation.
If you need more help, read through the API implementation in TCDRP/API.cs
or read through the TestTCMod
implementation.