func ModifyChannel(client httd.Patcher, changes *ModifyChannelParams) (ret *Channel, err error) {
	id := changes.ID
	if id.Empty() {
		err = errors.New("not a valid snowflake")
		return
	}

	_, body, err := client.Patch(&httd.Request{
		Ratelimiter: ratelimitChannel(id),
		Endpoint:    endpoint.Channel(id),
	})
	if err != nil {
		return
	}

	err = unmarshal(body, &ret)
	return
}
// ModifyChannel [PUT/PATCH]    Update a channels settings. Requires the 'MANAGE_CHANNELS' permission for the guild.
//                              Returns a channel on success, and a 400 BAD REQUEST on invalid parameters. Fires a
//                              Channel Update Gateway event. If modifying a category, individual Channel Update
//                              events will fire for each child channel that also changes. For the PATCH method,
//                              all the JSON Params are optional.
// Endpoint                     /channels/{channel.id}
// Rate limiter [MAJOR]         /channels/{channel.id}
// Discord documentation        https://discordapp.com/developers/docs/resources/channel#modify-channel
// Reviewed                     2018-06-07
// Comment                      andersfylling: only implemented the patch method, as its parameters are optional.
ModifyChannel [PUT/PATCH]    Update a channels settings. Requires the 'MANAGE_CHANNELS' permission for the guild.
Returns a channel on success, and a 400 BAD REQUEST on invalid parameters. Fires a
Channel Update Gateway event. If modifying a category, individual Channel Update
events will fire for each child channel that also changes. For the PATCH method,
all the JSON Params are optional.
// ModifyChannel [ PUT / PATCH ] Update a channels settings . Requires the ' MANAGE_CHANNELS ' permission for the guild . // Returns a channel on success and a 400 BAD REQUEST on invalid parameters . Fires a // Channel Update Gateway event . If modifying a category individual Channel Update // events will fire for each child channel that also changes . For the PATCH method // all the JSON Params are optional . // Endpoint / channels / { channel . id } // Rate limiter [ MAJOR ] / channels / { channel . id } // Discord documentation https : // discordapp . com / developers / docs / resources / channel#modify - channel // Reviewed 2018 - 06 - 07 // Comment andersfylling : only implemented the patch method as its parameters are optional .
func ModifyChannel(client httd.Patcher, changes *ModifyChannelParams) (ret *Channel, err error) {
	id := changes.ID
	if id.Empty() {
		err = errors.New("not a valid snowflake")
		return
	}
	_, body, err := client.Patch(&httd.Request{
		Ratelimiter: ratelimitChannel(id),
		Endpoint:    endpoint.Channel(id),
	})
	if err != nil {
		return
	}
	err = unmarshal(body, &ret)
	return
}
func ModifyChannel ( client httd . Patcher , changes * ModifyChannelParams ) ( ret * Channel , err error ) { id := changes . ID if id . Empty ( ) { err = errors . New ( " " ) return } _ , body , err := client . Patch ( & httd . Request { Ratelimiter : ratelimitChannel ( id ) , Endpoint : endpoint . Channel ( id ) , } ) if err != nil { return } err = unmarshal ( body , & ret ) return }
ModifyChannel [PUT/PATCH]    Update a channels settings.
ModifyChannel [ PUT / PATCH ] Update a channels settings .