Skip to content

Commit 899de2c

Browse files
committed
docs: update documentation links to use angle brackets
1 parent 18353a4 commit 899de2c

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/gateway/gateway.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use tokio_tungstenite::{connect_async, tungstenite::Message, MaybeTlsStream, Web
1919
pub 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)]
2525
pub 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)]
3333
pub 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)]
4646
pub 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)]
7777
pub 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

9595
pub 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"};

src/message.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ pub struct ChannelMessage {
262262

263263
/// type of message
264264
///
265-
/// TODO: https://discord.com/developers/docs/resources/message#message-object-message-types
265+
/// TODO: <https://discord.com/developers/docs/resources/message#message-object-message-types>
266266
pub r#type: i32,
267267

268268
/// sent with Rich Presence-related chat embeds

0 commit comments

Comments
 (0)