func CreateChannelInvites(client httd.Poster, id Snowflake, params *CreateChannelInvitesParams) (ret *Invite, err error) {
	if id.Empty() {
		err = errors.New("channelID must be set to target the correct channel")
		return
	}
	if params == nil {
		params = &CreateChannelInvitesParams{} // have to send an empty JSON object ({}). maybe just struct{}?
	}

	_, body, err := client.Post(&httd.Request{
		Ratelimiter: ratelimitChannelInvites(id),
		Endpoint:    endpoint.ChannelInvites(id),
		JSONParams:  params,
		ContentType: httd.ContentTypeJSON,
	})
	if err != nil {
		return
	}

	err = unmarshal(body, &ret)
	return
}
// CreateChannelInvites [POST] Create a new invite object for the channel. Only usable for guild channels.
//                             Requires the CREATE_INSTANT_INVITE permission. All JSON parameters for this
//                             route are optional, however the request body is not. If you are not sending
//                             any fields, you still have to send an empty JSON object ({}).
//                             Returns an invite object.
// Endpoint                    /channels/{channel.id}/invites
// Rate limiter [MAJOR]        /channels/{channel.id}/invites
// Discord documentation       https://discordapp.com/developers/docs/resources/channel#create-channel-invite
// Reviewed                    2018-06-07
// Comment                     -
CreateChannelInvites [POST] Create a new invite object for the channel. Only usable for guild channels.
Requires the CREATE_INSTANT_INVITE permission. All JSON parameters for this
route are optional, however the request body is not. If you are not sending
any fields, you still have to send an empty JSON object ({}).
Returns an invite object.
// CreateChannelInvites [ POST ] Create a new invite object for the channel . Only usable for guild channels . // Requires the CREATE_INSTANT_INVITE permission . All JSON parameters for this // route are optional however the request body is not . If you are not sending // any fields you still have to send an empty JSON object ( {} ) . // Returns an invite object . // Endpoint / channels / { channel . id } / invites // Rate limiter [ MAJOR ] / channels / { channel . id } / invites // Discord documentation https : // discordapp . com / developers / docs / resources / channel#create - channel - invite // Reviewed 2018 - 06 - 07 // Comment -
func CreateChannelInvites(client httd.Poster, id Snowflake, params *CreateChannelInvitesParams) (ret *Invite, err error) {
	if id.Empty() {
		err = errors.New("channelID must be set to target the correct channel")
		return
	}
	if params == nil {
		params = &CreateChannelInvitesParams{} 
	}
	_, body, err := client.Post(&httd.Request{
		Ratelimiter: ratelimitChannelInvites(id),
		Endpoint:    endpoint.ChannelInvites(id),
		JSONParams:  params,
		ContentType: httd.ContentTypeJSON,
	})
	if err != nil {
		return
	}
	err = unmarshal(body, &ret)
	return
}
func CreateChannelInvites ( client httd . Poster , id Snowflake , params * CreateChannelInvitesParams ) ( ret * Invite , err error ) { if id . Empty ( ) { err = errors . New ( " " ) return } if params == nil { params = & CreateChannelInvitesParams { } } _ , body , err := client . Post ( & httd . Request { Ratelimiter : ratelimitChannelInvites ( id ) , Endpoint : endpoint . ChannelInvites ( id ) , JSONParams : params , ContentType : httd . ContentTypeJSON , } ) if err != nil { return } err = unmarshal ( body , & ret ) return }
CreateChannelInvites [POST] Create a new invite object for the channel.
CreateChannelInvites [ POST ] Create a new invite object for the channel .
// have to send an empty JSON object ({}). maybe just struct{}?