@@ -683,8 +683,9 @@ impl Discord {
683
683
684
684
/// Creates an emoji in a server.
685
685
///
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.
688
689
pub fn create_emoji ( & self , server : ServerId , name : & str , image : & str ) -> Result < Emoji > {
689
690
let map = ObjectBuilder :: new ( )
690
691
. insert ( "name" , name)
@@ -698,7 +699,7 @@ impl Discord {
698
699
/// Edits a server's emoji.
699
700
///
700
701
/// Requires that the logged in account be a user and have the
701
- /// " ADMINISTRATOR" or " MANAGE_EMOJIS" permission.
702
+ /// ` ADMINISTRATOR` or ` MANAGE_EMOJIS` permission.
702
703
pub fn edit_emoji ( & self , server : ServerId , emoji : EmojiId , name : & str ) -> Result < Emoji > {
703
704
let map = ObjectBuilder :: new ( )
704
705
. insert ( "name" , name)
@@ -711,7 +712,7 @@ impl Discord {
711
712
/// Delete an emoji in a server.
712
713
///
713
714
/// Requires that the logged in account be a user and have the
714
- /// " ADMINISTRATOR" or " MANAGE_EMOJIS" permission.
715
+ /// ` ADMINISTRATOR` or ` MANAGE_EMOJIS` permission.
715
716
pub fn delete_emoji ( & self , server : ServerId , emoji : EmojiId ) -> Result < ( ) > {
716
717
check_empty ( request ! ( self , delete, "/guilds/{}/emojis/{}" , server, emoji) )
717
718
}
0 commit comments