func DeleteChannel(client httd.Deleter, id Snowflake) (err error) {
	if id.Empty() {
		err = errors.New("not a valid snowflake")
		return
	}

	resp, _, err := client.Delete(&httd.Request{
		Ratelimiter: ratelimitChannel(id),
		Endpoint:    endpoint.Channel(id),
	})
	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
}
// DeleteChannel [DELETE]   Delete a channel, or close a private message. Requires the 'MANAGE_CHANNELS'
//                          permission for the guild. Deleting a category does not delete its child
//                          channels; they will have their parent_id removed and a Channel Update Gateway
//                          event will fire for each of them. Returns a channel object on success. Fires a
//                          Channel Delete Gateway event.
// Endpoint                 /channels/{channel.id}
// Rate limiter [MAJOR]     /channels/{channel.id}
// Discord documentation    https://discordapp.com/developers/docs/resources/channel#deleteclose-channel
// Reviewed                 2018-06-07
// Comment                  Deleting a guild channel cannot be undone. Use this with caution, as it
//                          is impossible to undo this action when performed on a guild channel. In
//                          contrast, when used with a private message, it is possible to undo the
//                          action by opening a private message with the recipient again.
DeleteChannel [DELETE]   Delete a channel, or close a private message. Requires the 'MANAGE_CHANNELS'
permission for the guild. Deleting a category does not delete its child
channels; they will have their parent_id removed and a Channel Update Gateway
event will fire for each of them. Returns a channel object on success. Fires a
Channel Delete Gateway event.
// DeleteChannel [ DELETE ] Delete a channel or close a private message . Requires the ' MANAGE_CHANNELS ' // permission for the guild . Deleting a category does not delete its child // channels ; they will have their parent_id removed and a Channel Update Gateway // event will fire for each of them . Returns a channel object on success . Fires a // Channel Delete Gateway event . // Endpoint / channels / { channel . id } // Rate limiter [ MAJOR ] / channels / { channel . id } // Discord documentation https : // discordapp . com / developers / docs / resources / channel#deleteclose - channel // Reviewed 2018 - 06 - 07 // Comment Deleting a guild channel cannot be undone . Use this with caution as it // is impossible to undo this action when performed on a guild channel . In // contrast when used with a private message it is possible to undo the // action by opening a private message with the recipient again .
func DeleteChannel(client httd.Deleter, id Snowflake) (err error) {
	if id.Empty() {
		err = errors.New("not a valid snowflake")
		return
	}
	resp, _, err := client.Delete(&httd.Request{
		Ratelimiter: ratelimitChannel(id),
		Endpoint:    endpoint.Channel(id),
	})
	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 DeleteChannel ( client httd . Deleter , id Snowflake ) ( err error ) { if id . Empty ( ) { err = errors . New ( " " ) return } resp , _ , err := client . Delete ( & httd . Request { Ratelimiter : ratelimitChannel ( id ) , Endpoint : endpoint . Channel ( id ) , } ) if err != nil { return } if resp . StatusCode != http . StatusNoContent { msg := " " + resp . Status + " " + http . StatusText ( http . StatusNoContent ) err = errors . New ( msg ) } return }
DeleteChannel [DELETE]   Delete a channel, or close a private message.
DeleteChannel [ DELETE ] Delete a channel or close a private message .