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

	err = unmarshal(body, &ret)
	return
}
// CreateGuildEmoji [POST]  Create a new emoji for the guild. Requires the
//                          'MANAGE_EMOJIS' permission. Returns the new emoji
//                          object on success. Fires a Guild Emojis Update Gateway event.
// Endpoint                 /guilds/{guild.id}/emojis
// Rate limiter [MAJOR]     /guilds/{guild.id} // TODO: no idea if this is correct
// Discord documentation    https://discordapp.com/developers/docs/resources/emoji#create-guild-emoji
// Reviewed                 2018-06-10
// Comment                  Emojis and animated emojis have a maximum file size of 256kb.
//                          Attempting to upload an emoji larger than this limit will fail
//                          and return 400 Bad Request and an error message, but not a JSON
//                          status code.
CreateGuildEmoji [POST]  Create a new emoji for the guild. Requires the
'MANAGE_EMOJIS' permission. Returns the new emoji
object on success. Fires a Guild Emojis Update Gateway event.
// CreateGuildEmoji [ POST ] Create a new emoji for the guild . Requires the // ' MANAGE_EMOJIS ' permission . Returns the new emoji // object on success . Fires a Guild Emojis Update Gateway event . // Endpoint / guilds / { guild . id } / emojis // Rate limiter [ MAJOR ] / guilds / { guild . id } // TODO : no idea if this is correct // Discord documentation https : // discordapp . com / developers / docs / resources / emoji#create - guild - emoji // Reviewed 2018 - 06 - 10 // Comment Emojis and animated emojis have a maximum file size of 256kb . // Attempting to upload an emoji larger than this limit will fail // and return 400 Bad Request and an error message but not a JSON // status code .
func CreateGuildEmoji(client httd.Poster, guildID Snowflake, params *CreateGuildEmojiParams) (ret *Emoji, err error) {
	if !validEmojiName(params.Name) {
		err = errors.New("emoji name contains illegal characters. Did not send request")
		return
	}
	_, body, err := client.Post(&httd.Request{
		Ratelimiter: ratelimitGuild(guildID),
		Endpoint:    endpoint.GuildEmojis(guildID),
		JSONParams:  params,
		ContentType: httd.ContentTypeJSON,
	})
	if err != nil {
		return
	}
	err = unmarshal(body, &ret)
	return
}
func CreateGuildEmoji ( client httd . Poster , guildID Snowflake , params * CreateGuildEmojiParams ) ( ret * Emoji , err error ) { if ! validEmojiName ( params . Name ) { err = errors . New ( " " ) return } _ , body , err := client . Post ( & httd . Request { Ratelimiter : ratelimitGuild ( guildID ) , Endpoint : endpoint . GuildEmojis ( guildID ) , JSONParams : params , ContentType : httd . ContentTypeJSON , } ) if err != nil { return } err = unmarshal ( body , & ret ) return }
CreateGuildEmoji [POST]  Create a new emoji for the guild.
CreateGuildEmoji [ POST ] Create a new emoji for the guild .