Basic Discord RPC for Dungeons & Dragons.
dnd-rpc [options]
Options:
-n, --name <name> Character name
-c, --class Character class
<artificer|barbarian|bard|cleric|druid|fighter|monk|paladin|ranger|rogue|sorcerer|warlock|wizard>
-l, --level, --lvl <level> Character level
-C, --color <black|red|silver|white> Color for the D&D logo that appears on Discord [default: red]
--dm, --is-dm If you're the DM [default: False]
--version Show version information
-?, -h, --help Show help and usage informationSupports all classes from the Player's Handbook and the Artificer. Unless you are the DM (marked with the --dm flag) you need to pass a character name, class and level (between 1 and 20). You can also pass the color for the D&D logo that will be displayed on Discord.
- .NET SDK 8
- Discord Game SDK
- Download the Discord Game SDK
- Copy the csharp folder into the root of the project.
- Rename it to DiscordGameSDK.
- Run
dotnet publish -c Release -r (your os' rid) - Copy the appropriate binary file from the Discord Game SDK into the publish folder
- Download the D&D 5e vector icons from morepurplemorebetter
- Turn the class icons into 1040 x 1040 PNGs
- Create a discord application
- Go to Rich Presence > Assets
- Upload the PNGs to the Assets tab
- Name each of them the class name entirely in lowercase (eg.
rogue)
- Name each of them the class name entirely in lowercase (eg.
- Get the ampersand version of the D&D logo
(there's black, red, white and silver options, all of them are needed)
- Resize the images if they're not big enough
- Add them to the Assets tab with the names set to
ampersand_color(eg.ampersand_red)
- Add your application ID as a environment variable named
DISCORD_CLIENT_ID