add GatewayPayload

This commit is contained in:
bitfl0wer 2023-04-30 21:54:15 +02:00
parent c6e6f34be3
commit eb98f1374c
No known key found for this signature in database
GPG Key ID: 84BBB60DF895ABF2
1 changed files with 12 additions and 0 deletions

View File

@ -829,3 +829,15 @@ impl WebSocketEvent for GatewayHeartbeat {}
pub struct GatewayHeartbeatAck {
pub op: i32,
}
impl WebSocketEvent for GatewayHeartbeatAck {}
#[derive(Debug, Default, Deserialize, Serialize)]
pub struct GatewayPayload {
pub op: i32,
pub d: Option<String>,
pub s: Option<i64>,
pub t: Option<String>,
}
impl WebSocketEvent for GatewayPayload {}