func EditMessage(client httd.Patcher, chanID, msgID Snowflake, params *EditMessageParams) (ret *Message, err error) {
	if chanID.Empty() {
		err = errors.New("channelID must be set to get channel messages")
		return
	}
	if msgID.Empty() {
		err = errors.New("msgID must be set to edit the message")
		return
	}

	_, body, err := client.Patch(&httd.Request{
		Ratelimiter: ratelimitChannelMessages(chanID),
		Endpoint:    "/channels/" + chanID.String() + "/messages/" + msgID.String(),
		JSONParams:  params,
		ContentType: httd.ContentTypeJSON,
	})
	if err != nil {
		return
	}

	err = unmarshal(body, &ret)
	return
}
// EditMessage [PATCH]      Edit a previously sent message. You can only edit messages that have been sent by
//                          the current user. Returns a message object. Fires a Message Update Gateway event.
// Endpoint                 /channels/{channel.id}/messages/{message.id}
// Rate limiter [MAJOR]     /channels/{channel.id}/messages
// Discord documentation    https://discordapp.com/developers/docs/resources/channel#edit-message
// Reviewed                 2018-06-10
// Comment                  All parameters to this endpoint are optional.
EditMessage [PATCH]      Edit a previously sent message. You can only edit messages that have been sent by
the current user. Returns a message object. Fires a Message Update Gateway event.
// EditMessage [ PATCH ] Edit a previously sent message . You can only edit messages that have been sent by // the current user . Returns a message object . Fires a Message Update Gateway event . // Endpoint / channels / { channel . id } / messages / { message . id } // Rate limiter [ MAJOR ] / channels / { channel . id } / messages // Discord documentation https : // discordapp . com / developers / docs / resources / channel#edit - message // Reviewed 2018 - 06 - 10 // Comment All parameters to this endpoint are optional .
func EditMessage(client httd.Patcher, chanID, msgID Snowflake, params *EditMessageParams) (ret *Message, err error) {
	if chanID.Empty() {
		err = errors.New("channelID must be set to get channel messages")
		return
	}
	if msgID.Empty() {
		err = errors.New("msgID must be set to edit the message")
		return
	}
	_, body, err := client.Patch(&httd.Request{
		Ratelimiter: ratelimitChannelMessages(chanID),
		Endpoint:    "/channels/" + chanID.String() + "/messages/" + msgID.String(),
		JSONParams:  params,
		ContentType: httd.ContentTypeJSON,
	})
	if err != nil {
		return
	}
	err = unmarshal(body, &ret)
	return
}
func EditMessage ( client httd . Patcher , chanID , msgID Snowflake , params * EditMessageParams ) ( ret * Message , err error ) { if chanID . Empty ( ) { err = errors . New ( " " ) return } if msgID . Empty ( ) { err = errors . New ( " " ) return } _ , body , err := client . Patch ( & httd . Request { Ratelimiter : ratelimitChannelMessages ( chanID ) , Endpoint : " " + chanID . String ( ) + " " + msgID . String ( ) , JSONParams : params , ContentType : httd . ContentTypeJSON , } ) if err != nil { return } err = unmarshal ( body , & ret ) return }
EditMessage [PATCH]      Edit a previously sent message.
EditMessage [ PATCH ] Edit a previously sent message .