func BulkDeleteMessages(client httd.Poster, chanID Snowflake, params *BulkDeleteMessagesParams) (err error) {
	if chanID.Empty() {
		err = errors.New("channelID must be set to get channel messages")
		return
	}
	err = params.Valid()
	if err != nil {
		return
	}

	resp, _, err := client.Post(&httd.Request{
		Ratelimiter: ratelimitChannelMessagesDelete(chanID),
		Endpoint:    endpoint.ChannelMessagesBulkDelete(chanID),
		ContentType: httd.ContentTypeJSON,
	})
	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
}
// BulkDeleteMessages [POST]    Delete multiple messages in a single request. This endpoint can only be used
//                              on guild channels and requires the 'MANAGE_MESSAGES' permission. Returns a 204
//                              empty response on success. Fires multiple Message Delete Gateway events.Any message
//                              IDs given that do not exist or are invalid will count towards the minimum and
//                              maximum message count (currently 2 and 100 respectively). Additionally,
//                              duplicated IDs will only be counted once.
// Endpoint                     /channels/{channel.id}/messages/bulk-delete
// Rate limiter [MAJOR]         /channels/{channel.id}/messages [DELETE] TODO: is this limiter key incorrect?
// Discord documentation        https://discordapp.com/developers/docs/resources/channel#delete-message
// Reviewed                     2018-06-10
// Comment                      This endpoint will not delete messages older than 2 weeks, and will fail if
//                              any message provided is older than that.
BulkDeleteMessages [POST]    Delete multiple messages in a single request. This endpoint can only be used
on guild channels and requires the 'MANAGE_MESSAGES' permission. Returns a 204
empty response on success. Fires multiple Message Delete Gateway events.Any message
IDs given that do not exist or are invalid will count towards the minimum and
maximum message count (currently 2 and 100 respectively). Additionally,
duplicated IDs will only be counted once.
Endpoint                     /channels/{channel.id}/messages/bulk-delete
Rate limiter [MAJOR]         /channels/{channel.id}/messages [DELETE] TODO: is this limiter key incorrect.
// BulkDeleteMessages [ POST ] Delete multiple messages in a single request . This endpoint can only be used // on guild channels and requires the ' MANAGE_MESSAGES ' permission . Returns a 204 // empty response on success . Fires multiple Message Delete Gateway events . Any message // IDs given that do not exist or are invalid will count towards the minimum and // maximum message count ( currently 2 and 100 respectively ) . Additionally // duplicated IDs will only be counted once . // Endpoint / channels / { channel . id } / messages / bulk - delete // Rate limiter [ MAJOR ] / channels / { channel . id } / messages [ DELETE ] TODO : is this limiter key incorrect? // Discord documentation https : // discordapp . com / developers / docs / resources / channel#delete - message // Reviewed 2018 - 06 - 10 // Comment This endpoint will not delete messages older than 2 weeks and will fail if // any message provided is older than that .
func BulkDeleteMessages(client httd.Poster, chanID Snowflake, params *BulkDeleteMessagesParams) (err error) {
	if chanID.Empty() {
		err = errors.New("channelID must be set to get channel messages")
		return
	}
	err = params.Valid()
	if err != nil {
		return
	}
	resp, _, err := client.Post(&httd.Request{
		Ratelimiter: ratelimitChannelMessagesDelete(chanID),
		Endpoint:    endpoint.ChannelMessagesBulkDelete(chanID),
		ContentType: httd.ContentTypeJSON,
	})
	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 BulkDeleteMessages ( client httd . Poster , chanID Snowflake , params * BulkDeleteMessagesParams ) ( err error ) { if chanID . Empty ( ) { err = errors . New ( " " ) return } err = params . Valid ( ) if err != nil { return } resp , _ , err := client . Post ( & httd . Request { Ratelimiter : ratelimitChannelMessagesDelete ( chanID ) , Endpoint : endpoint . ChannelMessagesBulkDelete ( chanID ) , ContentType : httd . ContentTypeJSON , } ) if err != nil { return } if resp . StatusCode != http . StatusNoContent { msg := " " + resp . Status + " " + http . StatusText ( http . StatusNoContent ) err = errors . New ( msg ) } return }
BulkDeleteMessages [POST]    Delete multiple messages in a single request.
BulkDeleteMessages [ POST ] Delete multiple messages in a single request .