mirror of
https://github.com/uowuo/abaddon.git
synced 2025-03-04 03:03:16 -05:00
add has_client_mods to identify props
This commit is contained in:
parent
6d8fbe6dc9
commit
15751fda06
@ -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";
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user