You are viewing a potentially older version of this package. View all versions.
xhayper-InscryptionRichPresence-0.0.3 icon

InscryptionRichPresence

Add an API for Discord RPC as well as adding it own Rich Presence

Date uploaded 4 years ago
Version 0.0.3
Download link xhayper-InscryptionRichPresence-0.0.3.zip
Downloads 175
Dependency string xhayper-InscryptionRichPresence-0.0.3

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.

  1. Download and install Thunderstore Mod Manager or r2modman
  2. Click Install with Mod Manager button on top of the page
  3. Run the game via the mod manager

Installation (manual)

If you are installing this manually, do the following

  1. Extract the archive into a folder. Do not extract into the game folder.
  2. Move the InscryptionRichPresence.dll file and the InscryptionRichPresence folder into the BepInEx/plugins folder.
  3. Run the game.

Example API Usage

using InscryptionRichPresence;
using DiscordRPC;
using BepInEx;

namespace ExamplePlugin
{
    [BepInPlugin(PluginInfo.PLUGIN_GUID, PluginInfo.PLUGIN_NAME, PluginInfo.PLUGIN_VERSION)]
    [BepInDependency("io.github.xhayper.InscryptionRichPresence")]
    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.Disable()

  • Q: What dependencies i need to include?

  • A: Newtonsoft.Json and DiscordRichPresence

  • 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