You are viewing a potentially older version of this package.
View all versions.
InscryptionRichPresence
Add an API for Discord RPC as well as adding it own Rich Presence
| Date uploaded | 4 years ago |
| Version | 0.0.1 |
| Download link | xhayper-InscryptionRichPresence-0.0.1.zip |
| Downloads | 158 |
| Dependency string | xhayper-InscryptionRichPresence-0.0.1 |
README
!! ALPHA !!
InscryptionRichPresence
Add an API for Discord RPC as well as adding it own Rich Presence
Installation (game, automated)
This is the recommended way to install this plugin on the game.
- Download and install Thunderstore Mod Manager or r2modman
- Click Install with Mod Manager button on top of the page
- Run the game via the mod manager
Installation (manual)
If you are installing this manually, do the following
- Extract the archive into a folder. Do not extract into the game folder.
- Move the InscryptionRichPresence.dll and the InscryptionRichPresence into the BepInEx/plugins folder.
- Run the game.
Example API Usage
using InscryptionRichPresence;
using DiscordRPC;
using BepInEx;
namespace ExamplePlugin
{
[BepInPlugin(PluginInfo.PLUGIN_GUID, PluginInfo.PLUGIN_NAME, PluginInfo.PLUGIN_VERSION)]
public class Plugin : BaseUnityPlugin
{
private void Awake()
{
API.PublicRichPresence.SetApplicationID("1234567890"); // Setting this to your own application ID
API.PublicRichPresence.SetPresence(new RichPresence() // Set the Presence
{
State = "Hello, World!",
Timestamps = Timestamps.Now
});
}
}
}
FAQ
-
Q: How to disable default behaviour?
-
A: Calling
InscryptionRichPresence.EventHandler.UnsubscribeEvent() -
Q: What dependencies i need to include?
-
Q: What's
NativeNamedPipe/ How do i get it? -
A: It's used as alternative to C#'s vanilla named pipe, Since Unity broke it, You can get it here