msciotti / discord-game-sdk-test-apps

A repo full of various Discord GameSDK sample apps
67 stars 38 forks source link

Can I expose the CLIENT_ID safely? #12

Closed AleixFerre closed 2 years ago

AleixFerre commented 2 years ago

Hi,

I'm developing a RichPresence for a game in Unity.

I just saw this amazing example but I'm worried about exposing the CLIENT_ID.

Here: https://github.com/msciotti/discord-game-sdk-test-apps/blob/c14a8e1cc1570ab3d8654ee13d7aab4a8bbc7eaf/cs-examples/unity-examples/Assets/DiscordController.cs#L12

Is it really safe or I need some kind of environment variable?

JanakXD commented 2 years ago

Client ID is user id of you application so its safe, but still don't expose it unnecessary