discord_gleam/ws/packets/identify
Types
pub type IdentifyPacket {
IdentifyPacket(op: Int, d: IndentifyData)
}
Constructors
-
IdentifyPacket(op: Int, d: IndentifyData)
pub type IdentifyProperties {
IdentifyProperties(os: String, browser: String, device: String)
}
Constructors
-
IdentifyProperties(os: String, browser: String, device: String)
pub type IndentifyData {
IndentifyData(
token: String,
intents: Int,
properties: IdentifyProperties,
)
}
Constructors
-
IndentifyData( token: String, intents: Int, properties: IdentifyProperties, )
Functions
pub fn create_packet(token: String) -> String