Update types to fix deserialization errors

This commit is contained in:
kozabrada123 2023-05-06 10:39:16 +02:00
parent d4be173854
commit 1f8a38545b
1 changed files with 4 additions and 4 deletions

View File

@ -151,10 +151,10 @@ pub struct UserObject {
mfa_enabled: Option<bool>,
banner: Option<bool>,
accent_color: Option<String>,
locale: String,
locale: Option<String>,
verified: Option<bool>,
email: Option<String>,
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<i8>,
public_flags: Option<i8>,
}
@ -814,7 +814,7 @@ pub struct GatewayReady {
pub user: UserObject,
pub guilds: Vec<UnavailableGuild>,
pub session_id: String,
pub resume_gateway_url: String,
pub resume_gateway_url: Option<String>,
pub shard: Option<(u64, u64)>,
}