diff options
| author | mei <[email protected]> | 2017-06-27 20:37:30 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-06-27 20:37:59 -0700 |
| commit | f05efce7af0cb7020e7da08c7ca58fa6f786d4ef (patch) | |
| tree | f421e905cb9c49c695b7ff2aa0468ddb810e537d /src/model/channel/guild_channel.rs | |
| parent | Add missing ModelError variant in description impl (diff) | |
| download | serenity-f05efce7af0cb7020e7da08c7ca58fa6f786d4ef.tar.xz serenity-f05efce7af0cb7020e7da08c7ca58fa6f786d4ef.zip | |
Docs fixes
Diffstat (limited to 'src/model/channel/guild_channel.rs')
| -rw-r--r-- | src/model/channel/guild_channel.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/model/channel/guild_channel.rs b/src/model/channel/guild_channel.rs index 4f47d28..09e76a4 100644 --- a/src/model/channel/guild_channel.rs +++ b/src/model/channel/guild_channel.rs @@ -390,11 +390,11 @@ impl GuildChannel { /// Gets messages from the channel. /// - /// Refer to [`Channel::get_messages`] for more information. + /// Refer to [`Channel::messages`] for more information. /// /// Requires the [Read Message History] permission. /// - /// [`Channel::get_messages`]: enum.Channel.html#method.get_messages + /// [`Channel::messages`]: enum.Channel.html#method.messages /// [Read Message History]: permissions/constant.READ_MESSAGE_HISTORY.html #[inline] pub fn messages<F>(&self, f: F) -> Result<Vec<Message>> @@ -420,7 +420,7 @@ impl GuildChannel { /// use serenity::CACHE; /// /// client.on_message(|_, msg| { - /// let channel = match CACHE.read().unwrap().get_guild_channel(msg.channel_id) { + /// let channel = match CACHE.read().unwrap().guild_channel(msg.channel_id) { /// Some(channel) => channel, /// None => return, /// }; @@ -445,7 +445,7 @@ impl GuildChannel { /// use std::fs::File; /// /// client.on_message(|_, msg| { - /// let channel = match CACHE.read().unwrap().get_guild_channel(msg.channel_id) { + /// let channel = match CACHE.read().unwrap().guild_channel(msg.channel_id) { /// Some(channel) => channel, /// None => return, /// }; @@ -505,11 +505,11 @@ impl GuildChannel { /// Gets the list of [`User`]s who have reacted to a [`Message`] with a /// certain [`Emoji`]. /// - /// Refer to [`Channel::get_reaction_users`] for more information. + /// Refer to [`Channel::reaction_users`] for more information. /// /// **Note**: Requires the [Read Message History] permission. /// - /// [`Channel::get_reaction_users`]: enum.Channel.html#variant.get_reaction_users + /// [`Channel::reaction_users`]: enum.Channel.html#method.reaction_users /// [`Emoji`]: struct.Emoji.html /// [`Message`]: struct.Message.html /// [`User`]: struct.User.html |