aboutsummaryrefslogtreecommitdiff
path: root/src/model
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2018-01-31 14:56:12 -0800
committerZeyla Hellyer <[email protected]>2018-01-31 14:56:56 -0800
commit8578d5fe6e3bdc2842cda9417c242169f93b1a99 (patch)
treeba5ce74c82510f5d3b6b490b09eb5e6d2de77ca1 /src/model
parentAdd create message builder example (#268) (diff)
downloadserenity-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/model')
-rw-r--r--src/model/channel/group.rs2
-rw-r--r--src/model/channel/private_channel.rs2
-rw-r--r--src/model/error.rs8
-rw-r--r--src/model/guild/member.rs2
4 files changed, 7 insertions, 7 deletions
diff --git a/src/model/channel/group.rs b/src/model/channel/group.rs
index 840234d..61fe67e 100644
--- a/src/model/channel/group.rs
+++ b/src/model/channel/group.rs
@@ -276,7 +276,7 @@ impl Group {
/// is over the above limit, containing the number of unicode code points
/// over the limit.
///
- /// [`ChannelId`]: ../model/struct.ChannelId.html
+ /// [`ChannelId`]: ../model/id/struct.ChannelId.html
/// [`ModelError::MessageTooLong`]: enum.ModelError.html#variant.MessageTooLong
#[inline]
pub fn say(&self, content: &str) -> Result<Message> { self.channel_id.say(content) }
diff --git a/src/model/channel/private_channel.rs b/src/model/channel/private_channel.rs
index f22a225..7c8b1e8 100644
--- a/src/model/channel/private_channel.rs
+++ b/src/model/channel/private_channel.rs
@@ -221,7 +221,7 @@ impl PrivateChannel {
/// is over the above limit, containing the number of unicode code points
/// over the limit.
///
- /// [`ChannelId`]: ../model/struct.ChannelId.html
+ /// [`ChannelId`]: ../model/id/struct.ChannelId.html
/// [`ModelError::MessageTooLong`]: enum.ModelError.html#variant.MessageTooLong
#[inline]
pub fn say<D: ::std::fmt::Display>(&self, content: D) -> Result<Message> { self.id.say(content) }
diff --git a/src/model/error.rs b/src/model/error.rs
index a2b8325..ea919bc 100644
--- a/src/model/error.rs
+++ b/src/model/error.rs
@@ -82,8 +82,8 @@ pub enum Error {
/// An indication that a [guild][`Guild`] could not be found by
/// [Id][`GuildId`] in the [`Cache`].
///
- /// [`Guild`]: ../model/struct.Guild.html
- /// [`GuildId`]: ../model/struct.GuildId.html
+ /// [`Guild`]: ../model/guild/struct.Guild.html
+ /// [`GuildId`]: ../model/id/struct.GuildId.html
/// [`Cache`]: ../cache/struct.Cache.html
GuildNotFound,
/// Indicates that there are hierarchy problems restricting an action.
@@ -104,7 +104,7 @@ pub enum Error {
InvalidPermissions(Permissions),
/// An indicator that the [current user] can not perform an action.
///
- /// [current user]: ../model/struct.CurrentUser.html
+ /// [current user]: ../model/user/struct.CurrentUser.html
InvalidUser,
/// An indicator that an item is missing from the [`Cache`], and the action
/// can not be continued.
@@ -116,7 +116,7 @@ pub enum Error {
///
/// The number of bytes larger than the limit is provided.
///
- /// [`Message`]: ../model/struct.Message.html
+ /// [`Message`]: ../model/channel/struct.Message.html
MessageTooLong(u64),
/// Indicates that the current user is attempting to Direct Message another
/// bot user, which is disallowed by the API.
diff --git a/src/model/guild/member.rs b/src/model/guild/member.rs
index 3b0147b..cbc6066 100644
--- a/src/model/guild/member.rs
+++ b/src/model/guild/member.rs
@@ -224,7 +224,7 @@ impl Member {
/// See [`EditMember`] for the permission(s) required for separate builder
/// methods, as well as usage of this.
///
- /// [`Guild::edit_member`]: ../model/struct.Guild.html#method.edit_member
+ /// [`Guild::edit_member`]: ../model/guild/struct.Guild.html#method.edit_member
/// [`EditMember`]: ../builder/struct.EditMember.html
#[cfg(feature = "cache")]
pub fn edit<F: FnOnce(EditMember) -> EditMember>(&self, f: F) -> Result<()> {