discord_gleam/ws/packets/ready
Types
pub type ReadyData {
ReadyData(
v: Int,
user: user.User,
session_id: String,
resume_gateway_url: String,
)
}
Constructors
-
ReadyData( v: Int, user: user.User, session_id: String, resume_gateway_url: String, )
pub type ReadyPacket {
ReadyPacket(t: String, s: Int, op: Int, d: ReadyData)
}
Constructors
-
ReadyPacket(t: String, s: Int, op: Int, d: ReadyData)
Functions
pub fn string_to_data(
encoded: String,
) -> Result(ReadyPacket, DecodeError)