[Discord]: Add party privacy value

This commit is contained in:
FutureRave 2023-02-09 15:46:00 +00:00
parent ee078303eb
commit f17f737361
No known key found for this signature in database
GPG Key ID: 22F9079C86CFAB31

View File

@ -76,6 +76,7 @@ namespace Components
if (std::strcmp(hostName, "localhost") == 0) if (std::strcmp(hostName, "localhost") == 0)
{ {
DiscordPresence.state = "Private Match"; DiscordPresence.state = "Private Match";
DiscordPresence.partyPrivacy = DISCORD_PARTY_PRIVATE;
} }
else else
{ {
@ -84,6 +85,7 @@ namespace Components
TextRenderer::StripAllTextIcons(hostNameBuffer, hostNameBuffer, sizeof(hostNameBuffer)); TextRenderer::StripAllTextIcons(hostNameBuffer, hostNameBuffer, sizeof(hostNameBuffer));
DiscordPresence.state = hostNameBuffer; DiscordPresence.state = hostNameBuffer;
DiscordPresence.partyPrivacy = DISCORD_PARTY_PUBLIC;
} }
std::hash<Network::Address> hashFn; std::hash<Network::Address> hashFn;