Skip to content

Commit

Permalink
Fix doc-link to the Message::guild_id field in the Message::guild
Browse files Browse the repository at this point in the history
… method (serenity-rs#916)
  • Loading branch information
SOF3 authored Jul 19, 2020
1 parent e000833 commit 84b04ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/model/channel/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ impl Message {
///
/// Requires the `cache` feature be enabled.
///
/// [`guild_id`]: #method.guild_id
/// [`guild_id`]: #structfield.guild_id
#[cfg(feature = "cache")]
pub fn guild(&self, cache: impl AsRef<CacheRwLock>) -> Option<Arc<RwLock<Guild>>> {
cache.as_ref().read().guild(self.guild_id?)
Expand Down

0 comments on commit 84b04ba

Please sign in to comment.