// GroupDMRemoveRecipient [DELETE]  Removes a recipient from a Group DM. Returns a 204 empty response on success.
// Endpoint                         /channels/{channel.id}/recipients/{user.id}
// Rate limiter [MAJOR]             /channels/{channel.id}/recipients
// Discord documentation            https://discordapp.com/developers/docs/resources/channel#group-dm-remove-recipient
// Reviewed                         2018-06-10
// Comment                          -
GroupDMRemoveRecipient [DELETE]  Removes a recipient from a Group DM. Returns a 204 empty response on success.
// GroupDMRemoveRecipient [ DELETE ] Removes a recipient from a Group DM . Returns a 204 empty response on success . // Endpoint / channels / { channel . id } / recipients / { user . id } // Rate limiter [ MAJOR ] / channels / { channel . id } / recipients // Discord documentation https : // discordapp . com / developers / docs / resources / channel#group - dm - remove - recipient // Reviewed 2018 - 06 - 10 // Comment -
func GroupDMRemoveRecipient(client httd.Deleter, channelID, userID Snowflake) (err error) {
	if channelID.Empty() {
		return errors.New("channelID must be set to target the correct channel")
	}
	if userID.Empty() {
		return errors.New("userID must be set to target the specific recipient")
	}
	resp, _, err := client.Delete(&httd.Request{
		Ratelimiter: ratelimitChannelRecipients(channelID),
		Endpoint:    endpoint.ChannelRecipient(channelID, userID),
	})
	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 GroupDMRemoveRecipient ( client httd . Deleter , channelID , userID Snowflake ) ( err error ) { if channelID . Empty ( ) { return errors . New ( " " ) } if userID . Empty ( ) { return errors . New ( " " ) } resp , _ , err := client . Delete ( & httd . Request { Ratelimiter : ratelimitChannelRecipients ( channelID ) , Endpoint : endpoint . ChannelRecipient ( channelID , userID ) , } ) if err != nil { return } if resp . StatusCode != http . StatusNoContent { msg := " " + resp . Status + " " + http . StatusText ( http . StatusNoContent ) err = errors . New ( msg ) } return }
GroupDMRemoveRecipient [DELETE]  Removes a recipient from a Group DM.
GroupDMRemoveRecipient [ DELETE ] Removes a recipient from a Group DM .