func DeletePinnedChannelMessage(client httd.Deleter, channelID, msgID Snowflake) (err error) {
	if channelID.Empty() {
		return errors.New("channelID must be set to target the correct channel")
	}
	if msgID.Empty() {
		return errors.New("messageID must be set to target the specific channel message")
	}

	resp, _, err := client.Delete(&httd.Request{
		Ratelimiter: ratelimitChannelPins(channelID),
		Endpoint:    endpoint.ChannelPin(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
}
// DeletePinnedChannelMessage [DELETE]  Delete a pinned message in a channel. Requires the 'MANAGE_MESSAGES'
//                                      permission. Returns a 204 empty response on success.
//                                      Returns a 204 empty response on success.
// Endpoint                             /channels/{channel.id}/pins/{message.id}
// Rate limiter [MAJOR]                 /channels/{channel.id}/pins
// Discord documentation                https://discordapp.com/developers/docs/resources/channel#delete-pinned-channel-message
// Reviewed                             2018-06-10
// Comment                              -
DeletePinnedChannelMessage [DELETE]  Delete a pinned message in a channel. Requires the 'MANAGE_MESSAGES'
permission. Returns a 204 empty response on success.
Returns a 204 empty response on success.
// DeletePinnedChannelMessage [ DELETE ] Delete a pinned message in a channel . Requires the ' MANAGE_MESSAGES ' // permission . Returns a 204 empty response on success . // Returns a 204 empty response on success . // Endpoint / channels / { channel . id } / pins / { message . id } // Rate limiter [ MAJOR ] / channels / { channel . id } / pins // Discord documentation https : // discordapp . com / developers / docs / resources / channel#delete - pinned - channel - message // Reviewed 2018 - 06 - 10 // Comment -
func DeletePinnedChannelMessage(client httd.Deleter, channelID, msgID Snowflake) (err error) {
	if channelID.Empty() {
		return errors.New("channelID must be set to target the correct channel")
	}
	if msgID.Empty() {
		return errors.New("messageID must be set to target the specific channel message")
	}
	resp, _, err := client.Delete(&httd.Request{
		Ratelimiter: ratelimitChannelPins(channelID),
		Endpoint:    endpoint.ChannelPin(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 DeletePinnedChannelMessage ( client httd . Deleter , channelID , msgID Snowflake ) ( err error ) { if channelID . Empty ( ) { return errors . New ( " " ) } if msgID . Empty ( ) { return errors . New ( " " ) } resp , _ , err := client . Delete ( & httd . Request { Ratelimiter : ratelimitChannelPins ( channelID ) , Endpoint : endpoint . ChannelPin ( channelID , msgID ) , } ) if err != nil { return } if resp . StatusCode != http . StatusNoContent { msg := " " + resp . Status + " " + http . StatusText ( http . StatusNoContent ) err = errors . New ( msg ) } return }
DeletePinnedChannelMessage [DELETE]  Delete a pinned message in a channel.
DeletePinnedChannelMessage [ DELETE ] Delete a pinned message in a channel .