add GatewayPayload
This commit is contained in:
parent
c6e6f34be3
commit
eb98f1374c
|
@ -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 {}
|
||||
|
|
Loading…
Reference in New Issue