add has_client_mods to identify props

This commit is contained in:
ouwou committed 2025-01-30 19:20:18 -05:00
1 parent 6d8fbe6dc9
commit 15751fda06
3 files changed
+3

No files matched your search

+1
View File
@@ -2791,6 +2791,7 @@ void DiscordClient::SendIdentify() {
msg.Properties.Browser = "Chrome";
msg.Properties.Device = "";
msg.Properties.SystemLocale = "en-US";
msg.Properties.HasClientMods = false;
msg.Properties.BrowserUserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36";
msg.Properties.BrowserVersion = "67.0.3396.87";
msg.Properties.OSVersion = "10";
+1
View File
@@ -264,6 +264,7 @@ void to_json(nlohmann::json &j, const IdentifyProperties &m) {
j["browser"] = m.Browser;
j["device"] = m.Device;
j["system_locale"] = m.SystemLocale;
j["has_client_mods"] = m.HasClientMods;
j["browser_user_agent"] = m.BrowserUserAgent;
j["browser_version"] = m.BrowserVersion;
j["os_version"] = m.OSVersion;
+1
View File
@@ -396,6 +396,7 @@ struct IdentifyProperties {
std::string Browser;
std::string Device;
std::string SystemLocale;
bool HasClientMods;
std::string BrowserUserAgent;
std::string BrowserVersion;
std::string OSVersion;