discord / discord-rpc

https://discordapp.com/developers
MIT License
1.05k stars 324 forks source link

Discord SDK/RPC with C# - what to chose? #377

Closed aco228 closed 1 year ago

aco228 commented 1 year ago

I am currently integrating Discord into the C# desktop application - more precisely, I am integrating Rich Presence. I see two ways I can implement this: with SDK (.dll) or with RPC, and I am not sure what to choose, so I need help/advice:

Thanks in advanced!

advaith1 commented 1 year ago

Connecting to the RPC server over WebSockets is private and deprecated, and so is the authentication stuff. Connecting to the RPC server over IPC is supported, and that is how this discord-rpc library, the GameSDK, and many third party libraries and games implement rich presence. You can implement the IPC connection yourself use or one of the many libraries available.

The official discord-rpc and GameSDK libraries do not support custom buttons as they are outdated, but the underlying IPC connection does and many third party libraries do.

Here is a maintained (unofficial) C# rich presence library: Lachee/discord-rpc-csharp

aco228 commented 1 year ago

thanks, @advaith1 for the answer - I have two more you can help me or point me to the right person/place to ask?

Also, regarding this question: what is the approval process? I don't see this in the developer portal.. is this some old feature, and it was removed in meantime?

advaith1 commented 1 year ago

I am worried about this line from the documentation

That only applies to creating guilds and channels; if you are just using rich presence then there is no limit on that.

They stopped approving apps for it many years ago; not sure if there was ever a public process for getting approved