Skip to content

Quick demonstration of the Discord RPC feature with a simple C# WPF app.

Notifications You must be signed in to change notification settings

nostrenz/csharp-discord-rpc-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C# Discord RPC demo

A quick demontration of the Discord RPC feature with a simple C# WPF app, made from the Unity demo provided in the official repository.

How do I use it?

1 - Run the app

Download a release and run DiscordRpcDemo.exe or build the app from source by cloning this repo, opening DiscordRpcDemo.sln in Visual Studio and runing the solution.

Main window

2 - Add it as a game in Discord

Open the settings panel in the Discord Desktop app, go to Games, click "Add it!" and select the app ("Discord RPC demo").

3 - Obtain a Client ID

Now you will need a Client ID. To obtain it just go to the Discord developper applications panel and click "New App". Give it a nice App name, click the "Create app" button, then the "Enable Rich Presence" button.

4 - Mess with it

Copy the Client ID at the top of the page and paste it in the Client ID field in the app. Click "Initialize" then "Update" and you should see this below your username and in your Discord profile:

Discord Profile

Of couse you can change what's in each fields, press "Update" and you'll see it changed on Discord after a few seconds. Also, hitting RunCallbacks should tells you about errors or disconnections if any.

About

Quick demonstration of the Discord RPC feature with a simple C# WPF app.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages