func GetChannelInvites(client httd.Getter, id Snowflake) (ret []*Invite, err error) {
	if id.Empty() {
		err = errors.New("channelID must be set to target the correct channel")
		return
	}

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

	err = unmarshal(body, &ret)
	return
}
// GetChannelInvites [GET]  Returns a list of invite objects (with invite metadata) for the channel.
//                          Only usable for guild channels. Requires the 'MANAGE_CHANNELS' permission.
// Endpoint                 /channels/{channel.id}/invites
// Rate limiter [MAJOR]     /channels/{channel.id}/invites
// Discord documentation    https://discordapp.com/developers/docs/resources/channel#get-channel-invites
// Reviewed                 2018-06-07
// Comment                  -
GetChannelInvites [GET]  Returns a list of invite objects (with invite metadata) for the channel.
Only usable for guild channels. Requires the 'MANAGE_CHANNELS' permission.
// GetChannelInvites [ GET ] Returns a list of invite objects ( with invite metadata ) for the channel . // Only usable for guild channels . Requires the ' MANAGE_CHANNELS ' permission . // Endpoint / channels / { channel . id } / invites // Rate limiter [ MAJOR ] / channels / { channel . id } / invites // Discord documentation https : // discordapp . com / developers / docs / resources / channel#get - channel - invites // Reviewed 2018 - 06 - 07 // Comment -
func GetChannelInvites(client httd.Getter, id Snowflake) (ret []*Invite, err error) {
	if id.Empty() {
		err = errors.New("channelID must be set to target the correct channel")
		return
	}
	_, body, err := client.Get(&httd.Request{
		Ratelimiter: ratelimitChannelInvites(id),
		Endpoint:    endpoint.ChannelInvites(id),
	})
	if err != nil {
		return
	}
	err = unmarshal(body, &ret)
	return
}
func GetChannelInvites ( client httd . Getter , id Snowflake ) ( ret [ ] * Invite , err error ) { if id . Empty ( ) { err = errors . New ( " " ) return } _ , body , err := client . Get ( & httd . Request { Ratelimiter : ratelimitChannelInvites ( id ) , Endpoint : endpoint . ChannelInvites ( id ) , } ) if err != nil { return } err = unmarshal ( body , & ret ) return }
GetChannelInvites [GET]  Returns a list of invite objects (with invite metadata) for the channel.
GetChannelInvites [ GET ] Returns a list of invite objects ( with invite metadata ) for the channel .