func ModifyGuildEmoji(client httd.Patcher, guildID, emojiID Snowflake, params *ModifyGuildEmojiParams) (ret *Emoji, err error) {
	if !validEmojiName(params.Name) {
		err = errors.New("emoji name contains illegal characters. Did not send request")
		return
	}
	_, body, err := client.Patch(&httd.Request{
		Ratelimiter: ratelimitGuild(guildID),
		Endpoint:    endpoint.GuildEmoji(guildID, emojiID),
		JSONParams:  params,
		ContentType: httd.ContentTypeJSON,
	})
	if err != nil {
		return
	}

	err = unmarshal(body, &ret)
	return
}
// ModifyGuildEmoji [PATCH] Modify the given emoji. Requires the 'MANAGE_EMOJIS'
//                          permission. Returns the updated emoji object on success.
//                          Fires a Guild Emojis Update Gateway event.
// Endpoint                 /guilds/{guild.id}/emojis/{emoji.id}
// Rate limiter [MAJOR]     /guilds/{guild.id} // TODO: no idea if this is correct
// Discord documentation    https://discordapp.com/developers/docs/resources/emoji#modify-guild-emoji
// Reviewed                 2018-06-10
// Comment                  -
ModifyGuildEmoji [PATCH] Modify the given emoji. Requires the 'MANAGE_EMOJIS'
permission. Returns the updated emoji object on success.
Fires a Guild Emojis Update Gateway event.
// ModifyGuildEmoji [ PATCH ] Modify the given emoji . Requires the ' MANAGE_EMOJIS ' // permission . Returns the updated emoji object on success . // Fires a Guild Emojis Update Gateway event . // Endpoint / guilds / { guild . id } / emojis / { emoji . id } // Rate limiter [ MAJOR ] / guilds / { guild . id } // TODO : no idea if this is correct // Discord documentation https : // discordapp . com / developers / docs / resources / emoji#modify - guild - emoji // Reviewed 2018 - 06 - 10 // Comment -
func ModifyGuildEmoji(client httd.Patcher, guildID, emojiID Snowflake, params *ModifyGuildEmojiParams) (ret *Emoji, err error) {
	if !validEmojiName(params.Name) {
		err = errors.New("emoji name contains illegal characters. Did not send request")
		return
	}
	_, body, err := client.Patch(&httd.Request{
		Ratelimiter: ratelimitGuild(guildID),
		Endpoint:    endpoint.GuildEmoji(guildID, emojiID),
		JSONParams:  params,
		ContentType: httd.ContentTypeJSON,
	})
	if err != nil {
		return
	}
	err = unmarshal(body, &ret)
	return
}
func ModifyGuildEmoji ( client httd . Patcher , guildID , emojiID Snowflake , params * ModifyGuildEmojiParams ) ( ret * Emoji , err error ) { if ! validEmojiName ( params . Name ) { err = errors . New ( " " ) return } _ , body , err := client . Patch ( & httd . Request { Ratelimiter : ratelimitGuild ( guildID ) , Endpoint : endpoint . GuildEmoji ( guildID , emojiID ) , JSONParams : params , ContentType : httd . ContentTypeJSON , } ) if err != nil { return } err = unmarshal ( body , & ret ) return }
ModifyGuildEmoji [PATCH] Modify the given emoji.
ModifyGuildEmoji [ PATCH ] Modify the given emoji .