diff options
| author | Zeyla Hellyer <[email protected]> | 2018-07-10 08:01:23 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2018-07-11 22:54:08 -0700 |
| commit | 0d6e019c258a8f2e743bcab196acab50b01e3958 (patch) | |
| tree | 4db148169920d0a14652d9c08b68b8e5288cbbd8 /src | |
| parent | impl Mentionable for GuildChannel (#348) (diff) | |
| download | serenity-0d6e019c258a8f2e743bcab196acab50b01e3958.tar.xz serenity-0d6e019c258a8f2e743bcab196acab50b01e3958.zip | |
Fix doc links with no anchor
Diffstat (limited to 'src')
| -rw-r--r-- | src/builder/create_embed.rs | 2 | ||||
| -rw-r--r-- | src/cache/mod.rs | 4 | ||||
| -rw-r--r-- | src/client/bridge/gateway/shard_manager.rs | 1 | ||||
| -rw-r--r-- | src/client/mod.rs | 6 | ||||
| -rw-r--r-- | src/framework/standard/args.rs | 2 | ||||
| -rw-r--r-- | src/model/channel/embed.rs | 4 | ||||
| -rw-r--r-- | src/model/guild/mod.rs | 3 |
7 files changed, 18 insertions, 4 deletions
diff --git a/src/builder/create_embed.rs b/src/builder/create_embed.rs index 48ea19d..52ed7cb 100644 --- a/src/builder/create_embed.rs +++ b/src/builder/create_embed.rs @@ -337,6 +337,8 @@ impl CreateEmbed { /// with the provided filename. Or else this won't work. /// /// [`ChannelId::send_files`]: ../model/id/struct.ChannelId.html#send_files + /// + /// [`image`]: #method.image #[inline] pub fn attachment<S: AsRef<str>>(self, filename: S) -> Self { self._attachment(filename.as_ref()) diff --git a/src/cache/mod.rs b/src/cache/mod.rs index 6b6e1c4..14e1a14 100644 --- a/src/cache/mod.rs +++ b/src/cache/mod.rs @@ -8,7 +8,7 @@ //! within the library. Mutate data at your own discretion. //! //! A "globally available" instance of the Cache is available at -//! [`client::CACHE`]. This is the instance that is updated by the library, +//! [`CACHE`]. This is the instance that is updated by the library, //! meaning you should _not_ need to maintain updating it yourself in any case. //! //! # Use by Models @@ -610,6 +610,8 @@ impl Cache { /// # try_main().unwrap(); /// # } /// ``` + /// + /// [`private_channels`]: #structfield.private_channels #[inline] pub fn private_channel<C: Into<ChannelId>>(&self, channel_id: C) diff --git a/src/client/bridge/gateway/shard_manager.rs b/src/client/bridge/gateway/shard_manager.rs index a6cea31..3bf587c 100644 --- a/src/client/bridge/gateway/shard_manager.rs +++ b/src/client/bridge/gateway/shard_manager.rs @@ -247,6 +247,7 @@ impl ShardManager { /// /// [`ShardQueuer`]: struct.ShardQueuer.html /// [`ShardRunner`]: struct.ShardRunner.html + /// [`initialize`]: #method.initialize pub fn restart(&mut self, shard_id: ShardId) { info!("Restarting shard {}", shard_id); self.shutdown(shard_id); diff --git a/src/client/mod.rs b/src/client/mod.rs index 0efd82f..d5f8711 100644 --- a/src/client/mod.rs +++ b/src/client/mod.rs @@ -62,8 +62,8 @@ use self::bridge::voice::ClientVoiceManager; /// # Event Handlers /// /// Event handlers can be configured. For example, the event handler -/// [`EventHandler::on_message`] will be dispatched to whenever a [`Event::MessageCreate`] is -/// received over the connection. +/// [`EventHandler::message`] will be dispatched to whenever a +/// [`Event::MessageCreate`] is received over the connection. /// /// Note that you do not need to manually handle events, as they are handled /// internally and then dispatched to your event handlers. @@ -93,7 +93,7 @@ use self::bridge::voice::ClientVoiceManager; /// ``` /// /// [`Shard`]: gateway/struct.Shard.html -/// [`on_message`]: #method.on_message +/// [`EventHandler::message`]: trait.EventHandler.html#tymethod.message /// [`Event::MessageCreate`]: ../model/event/enum.Event.html#variant.MessageCreate /// [sharding docs]: gateway/index.html#sharding pub struct Client { diff --git a/src/framework/standard/args.rs b/src/framework/standard/args.rs index 8af8124..194fadf 100644 --- a/src/framework/standard/args.rs +++ b/src/framework/standard/args.rs @@ -864,6 +864,8 @@ impl Args { /// /// assert_eq!(args.len_quoted(), 2); // `2` because `["42", "69"]` /// ``` + /// + /// [`len`]: #method.len #[deprecated(since = "0.5.3", note = "Its task was merged with `len`, please use it instead.")] pub fn len_quoted(&mut self) -> usize { self.len() diff --git a/src/model/channel/embed.rs b/src/model/channel/embed.rs index bc2d0da..b776d27 100644 --- a/src/model/channel/embed.rs +++ b/src/model/channel/embed.rs @@ -50,6 +50,8 @@ pub struct Embed { /// /// For example, if the embed [`kind`] is `"video"`, the provider might /// contain information about YouTube. + /// + /// [`kind`]: #structfield.kind pub provider: Option<EmbedProvider>, /// Thumbnail information of the embed. pub thumbnail: Option<EmbedThumbnail>, @@ -62,6 +64,8 @@ pub struct Embed { /// The embed's video information. /// /// This is present if the [`kind`] is `"video"`. + /// + /// [`kind`]: #structfield.kind pub video: Option<EmbedVideo>, } diff --git a/src/model/guild/mod.rs b/src/model/guild/mod.rs index 4fc7079..67b0f0e 100644 --- a/src/model/guild/mod.rs +++ b/src/model/guild/mod.rs @@ -102,6 +102,7 @@ pub struct Guild { /// the library. /// /// [`ReadyEvent`]: events/struct.ReadyEvent.html + /// [`member_count`]: #structfield.member_count #[serde(serialize_with = "serialize_gen_map")] pub members: HashMap<UserId, Member>, /// Indicator of whether the guild requires multi-factor authentication for @@ -671,6 +672,8 @@ impl Guild { /// /// If both user IDs are the same, `None` is returned. If one of the users /// is the guild owner, their ID is returned. + /// + /// [`position`]: struct.Role.html#structfield.position #[cfg(feature = "cache")] #[inline] pub fn greater_member_hierarchy<T, U>(&self, lhs_id: T, rhs_id: U) |