Skip to content

Comments

Add Discord RPC Integration#1803

Open
Generalisk wants to merge 1 commit intoValveSoftware:masterfrom
Generalisk:discord-support
Open

Add Discord RPC Integration#1803
Generalisk wants to merge 1 commit intoValveSoftware:masterfrom
Generalisk:discord-support

Conversation

@Generalisk
Copy link

@Generalisk Generalisk commented Feb 14, 2026

Warning

This hasn't been tested on Linux yet, so it is recommended that this gets fully tested before merging.

This PR adds official Discord Rich Presence (Discord RPC) integration for the Source Engine. This PR supports both HL2MP & TF2, with barebones support for other projects as well.

This PR was adapted and based off of this Valve Developer Wiki page.

image

Note

This PR utilizes third-party apps that I have set up myself. Should you choose to merge it, you are welcome to use the ones I’ve provided or set up your own; either way is completely fine by me.

Half-Life 2 Deathmatch Team Fortress 2
Main Menu image image
Game image image

Important

In order for the PR to work properly, you need to add the Discord RPC binaries into your mods folder, you can download the files here.

While there is no invite support just yet, it is definitely something that I plan on implementing in the future.

Generalisk added a commit to Generalisk/SourceSDK-Generalisk that referenced this pull request Feb 14, 2026
@Generalisk Generalisk changed the title Add Discord RPC Support Add Discord RPC Integration Feb 15, 2026
@Generalisk Generalisk marked this pull request as ready for review February 15, 2026 01:42
@MrConeMan
Copy link

For TF2 is there any way you can also include what gamemode is currently being played?

@Generalisk
Copy link
Author

For TF2 is there any way you can also include what gamemode is currently being played?

Right now, the RPC just parses the raw map name (i.e. ctf_2fort), but I do plan to have it parse a friendly name alongside the gamemode name once I have enough free time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants