diff --git a/src/api/types.rs b/src/api/types.rs index 16cccda..cf0e0c4 100644 --- a/src/api/types.rs +++ b/src/api/types.rs @@ -151,10 +151,10 @@ pub struct UserObject { mfa_enabled: Option, banner: Option, accent_color: Option, - locale: String, + locale: Option, verified: Option, email: Option, - flags: i8, + flags: String, // Not sure why flags is a string, but real responses from the gateway give this is an integer in string format premium_type: Option, public_flags: Option, } @@ -814,7 +814,7 @@ pub struct GatewayReady { pub user: UserObject, pub guilds: Vec, pub session_id: String, - pub resume_gateway_url: String, + pub resume_gateway_url: Option, pub shard: Option<(u64, u64)>, } @@ -858,4 +858,4 @@ pub struct GatewayPayload { pub t: Option, } -impl WebSocketEvent for GatewayPayload {} +impl WebSocketEvent for GatewayPayload {} \ No newline at end of file