aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoracdenisSK <[email protected]>2017-07-15 23:01:36 +0200
committeracdenisSK <[email protected]>2017-07-15 23:01:36 +0200
commiteafccc852c215421649097af48a96e4053198d18 (patch)
tree2903e2b7cd070fdbb0f0c6a9b3b676d68139a116 /src
parentImplement adding checks to buckets (diff)
parentFix GuildChannel::permissions_for doctests (diff)
downloadserenity-eafccc852c215421649097af48a96e4053198d18.tar.xz
serenity-eafccc852c215421649097af48a96e4053198d18.zip
Merge branch 'master' of https://github.com/zeyla/serenity
Diffstat (limited to 'src')
-rw-r--r--src/model/channel/guild_channel.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/model/channel/guild_channel.rs b/src/model/channel/guild_channel.rs
index 7d77ecf..c7083d6 100644
--- a/src/model/channel/guild_channel.rs
+++ b/src/model/channel/guild_channel.rs
@@ -400,7 +400,7 @@ impl GuildChannel {
self.id.messages(f)
}
- /// Returns the name of the guild channel.
+ /// Returns the name of the guild channel.
pub fn name(&self) -> &str {
&self.name
}
@@ -419,9 +419,9 @@ impl GuildChannel {
/// use serenity::prelude::*;
/// use serenity::model::*;
/// struct Handler;
- ///
+ ///
/// use serenity::CACHE;
- ///
+ ///
/// impl EventHandler for Handler {
/// fn on_message(&self, _: Context, msg: Message) {
/// let channel = match CACHE.read().unwrap().guild_channel(msg.channel_id) {
@@ -473,8 +473,8 @@ impl GuildChannel {
/// },
/// };
///
- /// let _ = msg.channel_id.send_files((&file, "cat.png"), |m| m.content("here's a cat"));
- /// }
+ /// let _ = msg.channel_id.send_files(vec![(&file, "cat.png")], |m| m.content("here's a cat"));
+ /// }
/// }
///
/// let mut client = Client::new("token", Handler); client.start().unwrap();