func DeleteMessage(client httd.Deleter, channelID, msgID Snowflake) (err error) {
	if channelID.Empty() {
		err = errors.New("channelID must be set to get channel messages")
		return
	}
	if msgID.Empty() {
		err = errors.New("msgID must be set to delete the message")
		return
	}

	resp, _, err := client.Delete(&httd.Request{
		Ratelimiter: ratelimitChannelMessagesDelete(channelID),
		Endpoint:    endpoint.ChannelMessage(channelID, msgID),
	})
	if err != nil {
		return
	}

	if resp.StatusCode != http.StatusNoContent {
		msg := "unexpected http response code. Got " + resp.Status + ", wants " + http.StatusText(http.StatusNoContent)
		err = errors.New(msg)
	}
	return
}
// DeleteMessage [DELETE]   Delete a message. If operating on a guild channel and trying to delete a
//                          message that was not sent by the current user, this endpoint requires the
//                          'MANAGE_MESSAGES' permission. Returns a 204 empty response on success.
//                          Fires a Message Delete Gateway event.
// Endpoint                 /channels/{channel.id}/messages/{message.id}
// Rate limiter [MAJOR]     /channels/{channel.id}/messages [DELETE]
// Discord documentation    https://discordapp.com/developers/docs/resources/channel#delete-message
// Reviewed                 2018-06-10
// Comment                  -
DeleteMessage [DELETE]   Delete a message. If operating on a guild channel and trying to delete a
message that was not sent by the current user, this endpoint requires the
'MANAGE_MESSAGES' permission. Returns a 204 empty response on success.
Fires a Message Delete Gateway event.
// DeleteMessage [ DELETE ] Delete a message . If operating on a guild channel and trying to delete a // message that was not sent by the current user this endpoint requires the // ' MANAGE_MESSAGES ' permission . Returns a 204 empty response on success . // Fires a Message Delete Gateway event . // Endpoint / channels / { channel . id } / messages / { message . id } // Rate limiter [ MAJOR ] / channels / { channel . id } / messages [ DELETE ] // Discord documentation https : // discordapp . com / developers / docs / resources / channel#delete - message // Reviewed 2018 - 06 - 10 // Comment -
func DeleteMessage(client httd.Deleter, channelID, msgID Snowflake) (err error) {
	if channelID.Empty() {
		err = errors.New("channelID must be set to get channel messages")
		return
	}
	if msgID.Empty() {
		err = errors.New("msgID must be set to delete the message")
		return
	}
	resp, _, err := client.Delete(&httd.Request{
		Ratelimiter: ratelimitChannelMessagesDelete(channelID),
		Endpoint:    endpoint.ChannelMessage(channelID, msgID),
	})
	if err != nil {
		return
	}
	if resp.StatusCode != http.StatusNoContent {
		msg := "unexpected http response code. Got " + resp.Status + ", wants " + http.StatusText(http.StatusNoContent)
		err = errors.New(msg)
	}
	return
}
func DeleteMessage ( client httd . Deleter , channelID , msgID Snowflake ) ( err error ) { if channelID . Empty ( ) { err = errors . New ( " " ) return } if msgID . Empty ( ) { err = errors . New ( " " ) return } resp , _ , err := client . Delete ( & httd . Request { Ratelimiter : ratelimitChannelMessagesDelete ( channelID ) , Endpoint : endpoint . ChannelMessage ( channelID , msgID ) , } ) if err != nil { return } if resp . StatusCode != http . StatusNoContent { msg := " " + resp . Status + " " + http . StatusText ( http . StatusNoContent ) err = errors . New ( msg ) } return }
DeleteMessage [DELETE]   Delete a message.
DeleteMessage [ DELETE ] Delete a message .