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/client | |
| 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/client')
| -rw-r--r-- | src/client/bridge/gateway/shard_messenger.rs | 10 | ||||
| -rw-r--r-- | src/client/bridge/gateway/shard_runner_message.rs | 4 | ||||
| -rw-r--r-- | src/client/context.rs | 24 | ||||
| -rw-r--r-- | src/client/error.rs | 2 |
4 files changed, 20 insertions, 20 deletions
diff --git a/src/client/bridge/gateway/shard_messenger.rs b/src/client/bridge/gateway/shard_messenger.rs index b2a5ce1..2331d4a 100644 --- a/src/client/bridge/gateway/shard_messenger.rs +++ b/src/client/bridge/gateway/shard_messenger.rs @@ -108,8 +108,8 @@ impl ShardMessenger { /// /// [`Event::GuildMembersChunk`]: /// ../../model/event/enum.Event.html#variant.GuildMembersChunk - /// [`Guild`]: ../../model/struct.Guild.html - /// [`Member`]: ../../model/struct.Member.html + /// [`Guild`]: ../../model/guild/struct.Guild.html + /// [`Member`]: ../../model/guild/struct.Member.html pub fn chunk_guilds<It>( &self, guild_ids: It, @@ -239,9 +239,9 @@ impl ShardMessenger { /// # } /// ``` /// - /// [`DoNotDisturb`]: ../../model/enum.OnlineStatus.html#variant.DoNotDisturb - /// [`Invisible`]: ../../model/enum.OnlineStatus.html#variant.Invisible - /// [`Offline`]: ../../model/enum.OnlineStatus.html#variant.Offline + /// [`DoNotDisturb`]: ../../model/user/enum.OnlineStatus.html#variant.DoNotDisturb + /// [`Invisible`]: ../../model/user/enum.OnlineStatus.html#variant.Invisible + /// [`Offline`]: ../../model/user/enum.OnlineStatus.html#variant.Offline pub fn set_status(&self, mut online_status: OnlineStatus) { if online_status == OnlineStatus::Offline { online_status = OnlineStatus::Invisible; diff --git a/src/client/bridge/gateway/shard_runner_message.rs b/src/client/bridge/gateway/shard_runner_message.rs index d6a18f5..d4018b4 100644 --- a/src/client/bridge/gateway/shard_runner_message.rs +++ b/src/client/bridge/gateway/shard_runner_message.rs @@ -10,7 +10,7 @@ pub enum ShardRunnerMessage { ChunkGuilds { /// The IDs of the [`Guild`]s to chunk. /// - /// [`Guild`]: ../../../model/struct.Guild.html + /// [`Guild`]: ../../../model/guild/struct.Guild.html guild_ids: Vec<GuildId>, /// The maximum number of members to receive [`GuildMembersChunkEvent`]s /// for. @@ -22,7 +22,7 @@ pub enum ShardRunnerMessage { /// For example, a query of `"s"` will cause only [`Member`]s whose /// usernames start with `"s"` to be chunked. /// - /// [`Member`]: ../../../model/struct.Member.html + /// [`Member`]: ../../../model/guild/struct.Member.html query: Option<String>, }, /// Indicates that the client is to close with the given status code and diff --git a/src/client/context.rs b/src/client/context.rs index f44225f..6cada3c 100644 --- a/src/client/context.rs +++ b/src/client/context.rs @@ -140,7 +140,7 @@ impl Context { /// client.start().unwrap(); /// ``` /// - /// [`Online`]: ../model/enum.OnlineStatus.html#variant.Online + /// [`Online`]: ../model/user/enum.OnlineStatus.html#variant.Online #[inline] pub fn online(&self) { self.shard.set_status(OnlineStatus::Online); @@ -171,7 +171,7 @@ impl Context { /// client.start().unwrap(); /// ``` /// - /// [`Idle`]: ../model/enum.OnlineStatus.html#variant.Idle + /// [`Idle`]: ../model/user/enum.OnlineStatus.html#variant.Idle #[inline] pub fn idle(&self) { self.shard.set_status(OnlineStatus::Idle); @@ -202,7 +202,7 @@ impl Context { /// client.start().unwrap(); /// ``` /// - /// [`DoNotDisturb`]: ../model/enum.OnlineStatus.html#variant.DoNotDisturb + /// [`DoNotDisturb`]: ../model/user/enum.OnlineStatus.html#variant.DoNotDisturb #[inline] pub fn dnd(&self) { self.shard.set_status(OnlineStatus::DoNotDisturb); @@ -234,7 +234,7 @@ impl Context { /// ``` /// /// [`Event::Ready`]: ../model/event/enum.Event.html#variant.Ready - /// [`Invisible`]: ../model/enum.OnlineStatus.html#variant.Invisible + /// [`Invisible`]: ../model/user/enum.OnlineStatus.html#variant.Invisible #[inline] pub fn invisible(&self) { self.shard.set_status(OnlineStatus::Invisible); @@ -267,7 +267,7 @@ impl Context { /// ``` /// /// [`Event::Resumed`]: ../model/event/enum.Event.html#variant.Resumed - /// [`Online`]: ../model/enum.OnlineStatus.html#variant.Online + /// [`Online`]: ../model/user/enum.OnlineStatus.html#variant.Online /// [`set_presence`]: #method.set_presence #[inline] pub fn reset_presence(&self) { @@ -312,7 +312,7 @@ impl Context { /// # fn main() {} /// ``` /// - /// [`Online`]: ../model/enum.OnlineStatus.html#variant.Online + /// [`Online`]: ../model/user/enum.OnlineStatus.html#variant.Online #[inline] pub fn set_game(&self, game: Game) { self.shard.set_presence(Some(game), OnlineStatus::Online); @@ -348,10 +348,10 @@ impl Context { /// ``` /// /// [`Event::Ready`]: ../model/event/enum.Event.html#variant.Ready - /// [`GameType`]: ../model/enum.GameType.html - /// [`Online`]: ../model/enum.OnlineStatus.html#variant.Online - /// [`OnlineStatus`]: ../model/enum.OnlineStatus.html - /// [`Playing`]: ../model/enum.GameType.html#variant.Playing + /// [`GameType`]: ../model/gateway/enum.GameType.html + /// [`Online`]: ../model/user/enum.OnlineStatus.html#variant.Online + /// [`OnlineStatus`]: ../model/user/enum.OnlineStatus.html + /// [`Playing`]: ../model/gateway/enum.GameType.html#variant.Playing /// [`reset_presence`]: #method.reset_presence /// [`set_presence`]: #method.set_presence pub fn set_game_name(&self, game_name: &str) { @@ -414,8 +414,8 @@ impl Context { /// client.start().unwrap(); /// ``` /// - /// [`DoNotDisturb`]: ../model/enum.OnlineStatus.html#variant.DoNotDisturb - /// [`Idle`]: ../model/enum.OnlineStatus.html#variant.Idle + /// [`DoNotDisturb`]: ../model/user/enum.OnlineStatus.html#variant.DoNotDisturb + /// [`Idle`]: ../model/user/enum.OnlineStatus.html#variant.Idle #[inline] pub fn set_presence(&self, game: Option<Game>, status: OnlineStatus) { self.shard.set_presence(game, status); diff --git a/src/client/error.rs b/src/client/error.rs index 23c9ad9..8790a17 100644 --- a/src/client/error.rs +++ b/src/client/error.rs @@ -9,7 +9,7 @@ use std::fmt::{Display, Formatter, Result as FmtResult}; /// [`Client`]: struct.Client.html /// [`Error`]: ../enum.Error.html /// [`Error::Client`]: ../enum.Error.html#variant.Client -/// [`GuildId::ban`]: ../model/struct.GuildId.html#method.ban +/// [`GuildId::ban`]: ../model/id/struct.GuildId.html#method.ban #[allow(enum_variant_names)] #[derive(Clone, Debug, Eq, Hash, PartialEq)] pub enum Error { |