Skip to content

Commit 0aa0b6b

Browse files
committed
Improve docs on remoji methods
1 parent e4c4382 commit 0aa0b6b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/lib.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -683,8 +683,9 @@ impl Discord {
683683

684684
/// Creates an emoji in a server.
685685
///
686-
/// Requires that the logged in account be a user and have the
687-
/// "ADMINISTRATOR" or "MANAGE_EMOJIS" permission.
686+
/// `read_image` may be used to build an `image` string. Requires that the
687+
/// logged in account be a user and have the `ADMINISTRATOR` or
688+
/// `MANAGE_EMOJIS` permission.
688689
pub fn create_emoji(&self, server: ServerId, name: &str, image: &str) -> Result<Emoji> {
689690
let map = ObjectBuilder::new()
690691
.insert("name", name)
@@ -698,7 +699,7 @@ impl Discord {
698699
/// Edits a server's emoji.
699700
///
700701
/// Requires that the logged in account be a user and have the
701-
/// "ADMINISTRATOR" or "MANAGE_EMOJIS" permission.
702+
/// `ADMINISTRATOR` or `MANAGE_EMOJIS` permission.
702703
pub fn edit_emoji(&self, server: ServerId, emoji: EmojiId, name: &str) -> Result<Emoji> {
703704
let map = ObjectBuilder::new()
704705
.insert("name", name)
@@ -711,7 +712,7 @@ impl Discord {
711712
/// Delete an emoji in a server.
712713
///
713714
/// Requires that the logged in account be a user and have the
714-
/// "ADMINISTRATOR" or "MANAGE_EMOJIS" permission.
715+
/// `ADMINISTRATOR` or `MANAGE_EMOJIS` permission.
715716
pub fn delete_emoji(&self, server: ServerId, emoji: EmojiId) -> Result<()> {
716717
check_empty(request!(self, delete, "/guilds/{}/emojis/{}", server, emoji))
717718
}

0 commit comments

Comments
 (0)