Skip to content
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.

Discord RPC

DEMOLITIONDON96 edited this page Apr 12, 2022 · 3 revisions

How to Make a Custom RPC for your Mods

Since this engine will probably continue to use Psych's RPC code, might as well show you how it works, it's pretty simple really.

1. Go to the Discord Developer Portal. From there, you should see this:

image

2. Once on this page, click "New Application" on the top right corner of the screen. Doing so will give you this pop-up:

image

3. Name your App whatever you want, once created, you should see this:

image

4. This is the last thing you gotta do in this site, go to "Rich Presence", then down to "Art Assets", shown below:

image

5. From there, you can add your logo and icons there, but make sure your logo is labeled as "icon" and icons are named after the name of the icons in the game files, but without the "icon-" suffix, for example:

image

6. Now go to Discord.hx in the source code, and paste your app ID where the current ID is at, and you're done, the engine will handle the rest:

image

If Done Correctly, you should have a custom Rich Presence for your mod, as shown below:

image