@@ -19,7 +19,7 @@ use tokio_tungstenite::{connect_async, tungstenite::Message, MaybeTlsStream, Web
1919pub enum WebSocketReceiveData { }
2020
2121/// Receive Message from the gateway
22- /// https://discord.com/developers/docs/topics/gateway-events#receive-events
22+ /// < https://discord.com/developers/docs/topics/gateway-events#receive-events>
2323///
2424#[ derive( Serialize , Deserialize , Debug ) ]
2525pub struct ReceiveMessageOpcode {
@@ -28,7 +28,7 @@ pub struct ReceiveMessageOpcode {
2828}
2929
3030/// Identifies the client to the gateway.
31- /// https://discord.com/developers/docs/topics/gateway-events#identify-identify-connection-properties
31+ /// < https://discord.com/developers/docs/topics/gateway-events#identify-identify-connection-properties>
3232#[ derive( Debug , Serialize ) ]
3333pub struct IdentifyProperties {
3434 /// Your operating system.
@@ -41,7 +41,7 @@ pub struct IdentifyProperties {
4141 device : String ,
4242}
4343
44- /// https://discord.com/developers/docs/topics/gateway-events#activity-object-activity-types
44+ /// < https://discord.com/developers/docs/topics/gateway-events#activity-object-activity-types>
4545#[ derive( Debug , Serialize , Clone ) ]
4646pub enum ActivityType {
4747 Game = 0 ,
@@ -53,7 +53,7 @@ pub enum ActivityType {
5353}
5454
5555/// The activity object that the user is doing.
56- /// https://discord.com/developers/docs/topics/gateway-events#activity-object-activity-structure
56+ /// < https://discord.com/developers/docs/topics/gateway-events#activity-object-activity-structure>
5757///
5858/// Note Bot users are only able to set name, state, type, and url.
5959#[ derive( Debug , Serialize , Clone ) ]
@@ -72,7 +72,7 @@ pub struct Activity {
7272}
7373
7474/// Sent by the client to indicate a presence or status update.
75- /// https://discord.com/developers/docs/topics/gateway-events#update-presence
75+ /// < https://discord.com/developers/docs/topics/gateway-events#update-presence>
7676#[ derive( Debug , Serialize , Clone ) ]
7777pub struct PresenceUpdate {
7878 /// Unix time (in milliseconds) of when the client went idle, or null if the client is not idle.
@@ -94,11 +94,11 @@ pub struct PresenceUpdate {
9494
9595pub enum WebSocketMessageData {
9696 /// the heartbeat interval that the client should heartbeat to.
97- /// https://discord.com/developers/docs/topics/gateway-events#heartbeat/
97+ /// < https://discord.com/developers/docs/topics/gateway-events#heartbeat/>
9898 Heartbeat ( u64 ) ,
9999
100100 /// Used to trigger the initial handshake with the gateway.
101- /// https://discord.com/developers/docs/topics/gateway-events#identify-identify-structure
101+ /// < https://discord.com/developers/docs/topics/gateway-events#identify-identify-structure>
102102 Identify {
103103 /// authentication token
104104 token : String ,
@@ -125,7 +125,7 @@ pub enum WebSocketMessageData {
125125 } ,
126126
127127 /// Sent by the client to indicate a presence or status update.
128- /// https://discord.com/developers/docs/topics/gateway-events#update-presence
128+ /// < https://discord.com/developers/docs/topics/gateway-events#update-presence>
129129 PresenceUpdate ( PresenceUpdate ) ,
130130}
131131// "properties": {"$os": "linux", "$browser": "rustycord", "$device": "rustycord"};
0 commit comments