aboutsummaryrefslogtreecommitdiff
path: root/src/model
diff options
context:
space:
mode:
authorAustin Hellyer <[email protected]>2016-11-05 17:35:14 -0700
committerAustin Hellyer <[email protected]>2016-11-05 17:35:14 -0700
commit27c34534e441503926da372c98cdf79236256c36 (patch)
treef748905c2b903f971bb549987965a13303afdf7c /src/model
parentFix doc links to enum variants (diff)
downloadserenity-27c34534e441503926da372c98cdf79236256c36.tar.xz
serenity-27c34534e441503926da372c98cdf79236256c36.zip
Convert all doc anchors to named anchors
Convert all of the non-named anchors in docs to named anchors. Example: ```md Kicks a [`Member`](../model/struct.Member.html) from the specified [`Guild`](../model/struct.Guild.html) if they are in it. ``` is now written as: ```md Kicks a [`Member`] from the specified [`Guild`] if they are in it. [`Guild`]: ../model/struct.Guild.html [`Member`]: ../model/struct.Member.html ```
Diffstat (limited to 'src/model')
-rw-r--r--src/model/id.rs19
1 files changed, 13 insertions, 6 deletions
diff --git a/src/model/id.rs b/src/model/id.rs
index 97ee6d6..c8eff69 100644
--- a/src/model/id.rs
+++ b/src/model/id.rs
@@ -18,8 +18,10 @@ impl ChannelId {
http::get_channel(self.0)
}
- /// Returns a [Mention](struct.Mention.html) which will link to the
- /// channel.
+ /// Returns a [`Mention`] which will link to the [`Channel`].
+ ///
+ /// [`Channel`]: enum.Channel.html
+ /// [`Mention`]: struct.Mention.html
pub fn mention(&self) -> Mention {
Mention {
id: self.0,
@@ -70,7 +72,9 @@ impl GuildId {
http::get_guild(self.0)
}
- /// Mentions the [Guild](struct.Guild.html)'s default channel.
+ /// Mentions the [`Guild`]'s default channel.
+ ///
+ /// [`Guild`]: struct.Guild.html
pub fn mention(&self) -> Mention {
Mention {
id: self.0,
@@ -137,8 +141,9 @@ impl RoleId {
.cloned()
}
- /// Returns a [Mention](struct.Mention.html) which will ping members of the
- /// role.
+ /// Returns a [`Mention`] which will ping members of the role.
+ ///
+ /// [`Mention`]: struct.Mention.html
pub fn mention(&self) -> Mention {
Mention {
id: self.0,
@@ -166,7 +171,9 @@ impl From<User> for UserId {
}
impl UserId {
- /// Returns a [Mention](struct.Mention.html) which will ping the user.
+ /// Returns a [`Mention`] which will ping the user.
+ ///
+ /// [`Mention`]: struct.Mention.html
pub fn mention(&self) -> Mention {
Mention {
id: self.0,