diff options
| author | Zeyla Hellyer <[email protected]> | 2017-07-15 07:59:36 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-07-15 07:59:36 -0700 |
| commit | 4300e9a68388258fc0c1823b2d193f816709a76c (patch) | |
| tree | 841871787fe3e260e4a3430e3b3584f0d4b06352 /src/model/channel | |
| parent | Remove more threads with futures (diff) | |
| download | serenity-4300e9a68388258fc0c1823b2d193f816709a76c.tar.xz serenity-4300e9a68388258fc0c1823b2d193f816709a76c.zip | |
Fix GuildChannel::permissions_for doctests
Diffstat (limited to 'src/model/channel')
| -rw-r--r-- | src/model/channel/guild_channel.rs | 10 |
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(); |