Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
arqunis committed Jul 15, 2017
2 parents dc3a4df + 4300e9a commit eafccc8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/model/channel/guild_channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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) {
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit eafccc8

Please sign in to comment.