add GatewayPayload

This commit is contained in:
bitfl0wer 2023-04-30 21:54:15 +02:00
parent f95212b803
commit a8e3ad0950
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 {}