Skip to content

Commit

Permalink
Improve docs on remoji methods
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceManiac committed Nov 4, 2016
1 parent e4c4382 commit 0aa0b6b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Emoji> {
let map = ObjectBuilder::new()
.insert("name", name)
Expand All @@ -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<Emoji> {
let map = ObjectBuilder::new()
.insert("name", name)
Expand All @@ -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))
}
Expand Down

0 comments on commit 0aa0b6b

Please sign in to comment.