func GroupDMAddRecipient(client httd.Puter, channelID, userID Snowflake, params *GroupDMAddRecipientParams) (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.Put(&httd.Request{
		Ratelimiter: ratelimitChannelRecipients(channelID),
		Endpoint:    endpoint.ChannelRecipient(channelID, userID),
		JSONParams:  params,
		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
}
// GroupDMAddRecipient [PUT]    Adds a recipient to a Group DM using their access token.
//                              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-add-recipient
// Reviewed                     2018-06-10
// Comment                      -
GroupDMAddRecipient [PUT]    Adds a recipient to a Group DM using their access token.
Returns a 204 empty response on success.
// GroupDMAddRecipient [ PUT ] Adds a recipient to a Group DM using their access token . // 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 - add - recipient // Reviewed 2018 - 06 - 10 // Comment -
func GroupDMAddRecipient(client httd.Puter, channelID, userID Snowflake, params *GroupDMAddRecipientParams) (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.Put(&httd.Request{
		Ratelimiter: ratelimitChannelRecipients(channelID),
		Endpoint:    endpoint.ChannelRecipient(channelID, userID),
		JSONParams:  params,
		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 GroupDMAddRecipient ( client httd . Puter , channelID , userID Snowflake , params * GroupDMAddRecipientParams ) ( err error ) { if channelID . Empty ( ) { return errors . New ( " " ) } if userID . Empty ( ) { return errors . New ( " " ) } resp , _ , err := client . Put ( & httd . Request { Ratelimiter : ratelimitChannelRecipients ( channelID ) , Endpoint : endpoint . ChannelRecipient ( channelID , userID ) , JSONParams : params , ContentType : httd . ContentTypeJSON , } ) if err != nil { return } if resp . StatusCode != http . StatusNoContent { msg := " " + resp . Status + " " + http . StatusText ( http . StatusNoContent ) err = errors . New ( msg ) } return }
GroupDMAddRecipient [PUT]    Adds a recipient to a Group DM using their access token.
GroupDMAddRecipient [ PUT ] Adds a recipient to a Group DM using their access token .