From 23472d01d954595ba1cd35b5e6e1de4920dffd4f Mon Sep 17 00:00:00 2001 From: kozabrada123 <“kozabrada123@users.noreply.github.com”> Date: Fri, 5 May 2023 18:37:52 +0200 Subject: [PATCH] Update integers on some types --- src/api/types.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/api/types.rs b/src/api/types.rs index 2bed6b5..40f7f8f 100644 --- a/src/api/types.rs +++ b/src/api/types.rs @@ -830,7 +830,7 @@ impl WebSocketEvent for GatewayHello {} #[derive(Debug, Default, Deserialize, Serialize)] pub struct HelloData { - pub heartbeat_interval: i32, + pub heartbeat_interval: u128, } impl WebSocketEvent for HelloData {} @@ -838,7 +838,7 @@ impl WebSocketEvent for HelloData {} #[derive(Debug, Default, Deserialize, Serialize)] pub struct GatewayHeartbeat { pub op: u8, - pub d: u64, + pub d: Option, } impl WebSocketEvent for GatewayHeartbeat {} @@ -852,9 +852,9 @@ impl WebSocketEvent for GatewayHeartbeatAck {} #[derive(Debug, Default, Deserialize, Serialize)] pub struct GatewayPayload { - pub op: i32, + pub op: u8, pub d: Option, - pub s: Option, + pub s: Option, pub t: Option, }