Skip to content

Commit

Permalink
Point to User::nick_in in Message::author_nick's documentation (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolvereness committed Dec 28, 2020
1 parent d3ab6a7 commit 51dc943
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/model/channel/message.rs
Expand Up @@ -723,9 +723,7 @@ impl Message {

/// Tries to return author's nickname in the current channel's guild.
///
/// **Note**:
/// If message was sent in a private channel, then the function will return
/// `None`.
/// Refer to [`User::nick_in()`] inside and `None` outside of a guild.
#[inline]
pub async fn author_nick(&self, cache_http: impl CacheHttp) -> Option<String> {
self.author.nick_in(cache_http, self.guild_id?).await
Expand Down

0 comments on commit 51dc943

Please sign in to comment.