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

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

	err = unmarshal(body, &ret)
	return
}
// ModifyWebhook [PATCH]    Modify a webhook. Requires the 'MANAGE_WEBHOOKS' permission.
//                          Returns the updated webhook object on success.
// Endpoint                 /webhooks/{webhook.id}
// Rate limiter             /webhooks/{webhook.id}
// Discord documentation    https://discordapp.com/developers/docs/resources/webhook#modify-webhook
// Reviewed                 2018-08-14
// Comment                  All parameters to this endpoint. are optional. Not tested:extra json fields might
//                          cause an issue. Consider writing a json params object.
ModifyWebhook [PATCH]    Modify a webhook. Requires the 'MANAGE_WEBHOOKS' permission.
Returns the updated webhook object on success.
// ModifyWebhook [ PATCH ] Modify a webhook . Requires the ' MANAGE_WEBHOOKS ' permission . // Returns the updated webhook object on success . // Endpoint / webhooks / { webhook . id } // Rate limiter / webhooks / { webhook . id } // Discord documentation https : // discordapp . com / developers / docs / resources / webhook#modify - webhook // Reviewed 2018 - 08 - 14 // Comment All parameters to this endpoint . are optional . Not tested : extra json fields might // cause an issue . Consider writing a json params object .
func ModifyWebhook(client httd.Patcher, newWebhook *Webhook) (ret *Webhook, err error) {
	id := newWebhook.ID
	if id.Empty() {
		err = errors.New("not a valid snowflake")
		return
	}
	_, body, err := client.Patch(&httd.Request{
		Ratelimiter: ratelimitWebhook(id),
		Endpoint:    endpoint.Webhook(id),
		ContentType: httd.ContentTypeJSON,
	})
	if err != nil {
		return
	}
	err = unmarshal(body, &ret)
	return
}
func ModifyWebhook ( client httd . Patcher , newWebhook * Webhook ) ( ret * Webhook , err error ) { id := newWebhook . ID if id . Empty ( ) { err = errors . New ( " " ) return } _ , body , err := client . Patch ( & httd . Request { Ratelimiter : ratelimitWebhook ( id ) , Endpoint : endpoint . Webhook ( id ) , ContentType : httd . ContentTypeJSON , } ) if err != nil { return } err = unmarshal ( body , & ret ) return }
ModifyWebhook [PATCH]    Modify a webhook.
ModifyWebhook [ PATCH ] Modify a webhook .