polyphony_types/events/
identify.rs1use serde::{Deserialize, Serialize};
2use crate::events::{PresenceUpdate, WebSocketEvent};
3
4#[derive(Debug, Deserialize, Serialize, Default)]
5pub struct GatewayIdentifyPayload {
6 pub token: String,
7 pub properties: GatewayIdentifyConnectionProps,
8 pub compress: Option<bool>,
9 pub large_threshold: Option<i16>, pub shard: Option<Vec<(i32, i32)>>,
11 pub presence: Option<PresenceUpdate>,
12 pub intents: i32,
13}
14
15impl WebSocketEvent for GatewayIdentifyPayload {}
16
17#[derive(Debug, Deserialize, Serialize, Default)]
18pub struct GatewayIdentifyConnectionProps {
19 pub os: String,
20 pub browser: String,
21 pub device: String,
22}