diff options
| author | Zeyla Hellyer <[email protected]> | 2018-01-31 14:56:12 -0800 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2018-01-31 14:56:56 -0800 |
| commit | 8578d5fe6e3bdc2842cda9417c242169f93b1a99 (patch) | |
| tree | ba5ce74c82510f5d3b6b490b09eb5e6d2de77ca1 /src/utils/mod.rs | |
| parent | Add create message builder example (#268) (diff) | |
| download | serenity-8578d5fe6e3bdc2842cda9417c242169f93b1a99.tar.xz serenity-8578d5fe6e3bdc2842cda9417c242169f93b1a99.zip | |
Fix broken docs links caused by model mod changes
Fix broken links caused by the `model` module changes in v0.5.0, which
split up the module into sub-modules for better organization.
Diffstat (limited to 'src/utils/mod.rs')
| -rw-r--r-- | src/utils/mod.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/utils/mod.rs b/src/utils/mod.rs index afd5b59..de75632 100644 --- a/src/utils/mod.rs +++ b/src/utils/mod.rs @@ -137,7 +137,7 @@ pub fn is_nsfw(name: &str) -> bool { /// assert_eq!(utils::parse_invite(url), "0cDvIgU2voY8RSYL"); /// ``` /// -/// [`RichInvite`]: ../model/struct.RichInvite.html +/// [`RichInvite`]: ../model/guild/struct.RichInvite.html pub fn parse_invite(code: &str) -> &str { if code.starts_with("https://discord.gg/") { &code[19..] @@ -177,7 +177,7 @@ pub fn parse_invite(code: &str) -> &str { /// assert!(parse_username("<@!11494131541789a90b1c2").is_none()); /// ``` /// -/// [`User`]: ../model/struct.User.html +/// [`User`]: ../model/user/struct.User.html pub fn parse_username(mention: &str) -> Option<u64> { if mention.len() < 4 { return None; @@ -216,7 +216,7 @@ pub fn parse_username(mention: &str) -> Option<u64> { /// assert!(parse_role("<@&136107769680887808").is_none()); /// ``` /// -/// [`Role`]: ../model/struct.Role.html +/// [`Role`]: ../model/guild/struct.Role.html pub fn parse_role(mention: &str) -> Option<u64> { if mention.len() < 4 { return None; @@ -253,7 +253,7 @@ pub fn parse_role(mention: &str) -> Option<u64> { /// assert!(parse_channel("<#81384788765712384").is_none()); /// ``` /// -/// [`Channel`]: ../model/enum.Channel.html +/// [`Channel`]: ../model/channel/enum.Channel.html pub fn parse_channel(mention: &str) -> Option<u64> { if mention.len() < 4 { return None; @@ -297,7 +297,7 @@ pub fn parse_channel(mention: &str) -> Option<u64> { /// assert!(parse_emoji("<:smugAnimeFace:302516740095606785").is_none()); /// ``` /// -/// [`Emoji`]: ../model/struct.Emoji.html +/// [`Emoji`]: ../model/guild/struct.Emoji.html pub fn parse_emoji(mention: &str) -> Option<EmojiIdentifier> { let len = mention.len(); |