Skip to content

Commit

Permalink
Fix GatewayIdentifyConnectionProps for Spacebar Client
Browse files Browse the repository at this point in the history
  • Loading branch information
bitfl0wer committed Oct 24, 2024
1 parent 6af63ca commit 7460d3f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/types/events/identify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,12 @@ pub struct GatewayIdentifyConnectionProps {
/// ex: "Linux", "Windows", "Mac OS X"
///
/// ex (mobile): "Windows Mobile", "iOS", "Android", "BlackBerry"
#[serde(default)]
pub os: String,
/// Almost always sent
///
/// ex: "Firefox", "Chrome", "Opera Mini", "Opera", "Blackberry", "Facebook Mobile", "Chrome iOS", "Mobile Safari", "Safari", "Android Chrome", "Android Mobile", "Edge", "Konqueror", "Internet Explorer", "Mozilla", "Discord Client"
#[serde(default)]
pub browser: String,
/// Sometimes not sent, acceptable to be ""
///
Expand All @@ -94,14 +96,17 @@ pub struct GatewayIdentifyConnectionProps {
/// Almost always sent, most commonly en-US
///
/// ex: "en-US"
#[serde(default)]
pub system_locale: String,
/// Almost always sent
///
/// ex: any user agent, most common is "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36"
#[serde(default)]
pub browser_user_agent: String,
/// Almost always sent
///
/// ex: "113.0.0.0"
#[serde(default)]
pub browser_version: String,
/// Sometimes not sent, acceptable to be ""
///
Expand All @@ -118,8 +123,10 @@ pub struct GatewayIdentifyConnectionProps {
#[serde_as(as = "NoneAsEmptyString")]
pub referrer_current: Option<String>,
/// Almost always sent, most commonly "stable"
#[serde(default)]
pub release_channel: String,
/// Almost always sent, identifiable if default is 0, should be around 199933
#[serde(default)]
pub client_build_number: u64,
//pub client_event_source: Option<?>
}
Expand Down

0 comments on commit 7460d3f

Please sign in to comment.