From 0aa0b6b213ca8f193b437b2cd983cd2755a82a3c Mon Sep 17 00:00:00 2001 From: Tad Hardesty Date: Thu, 3 Nov 2016 21:59:39 -0700 Subject: [PATCH] Improve docs on remoji methods --- src/lib.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index da6783bb..716ebf5c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -683,8 +683,9 @@ impl Discord { /// Creates an emoji in a server. /// - /// Requires that the logged in account be a user and have the - /// "ADMINISTRATOR" or "MANAGE_EMOJIS" permission. + /// `read_image` may be used to build an `image` string. Requires that the + /// logged in account be a user and have the `ADMINISTRATOR` or + /// `MANAGE_EMOJIS` permission. pub fn create_emoji(&self, server: ServerId, name: &str, image: &str) -> Result { let map = ObjectBuilder::new() .insert("name", name) @@ -698,7 +699,7 @@ impl Discord { /// Edits a server's emoji. /// /// Requires that the logged in account be a user and have the - /// "ADMINISTRATOR" or "MANAGE_EMOJIS" permission. + /// `ADMINISTRATOR` or `MANAGE_EMOJIS` permission. pub fn edit_emoji(&self, server: ServerId, emoji: EmojiId, name: &str) -> Result { let map = ObjectBuilder::new() .insert("name", name) @@ -711,7 +712,7 @@ impl Discord { /// Delete an emoji in a server. /// /// Requires that the logged in account be a user and have the - /// "ADMINISTRATOR" or "MANAGE_EMOJIS" permission. + /// `ADMINISTRATOR` or `MANAGE_EMOJIS` permission. pub fn delete_emoji(&self, server: ServerId, emoji: EmojiId) -> Result<()> { check_empty(request!(self, delete, "/guilds/{}/emojis/{}", server, emoji)) }