func ModifyWebhookWithToken(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.WebhookToken(id, newWebhook.Token),
		ContentType: httd.ContentTypeJSON,
	})
	if err != nil {
		return
	}

	err = unmarshal(body, &ret)
	return
}
// ModifyWebhookWithToken [PATCH]   Same as ModifyWebhook, except this call does not require authentication,
//                                  does not accept a channel_id parameter in the body, and does not return
//                                  a user in the webhook object.
// Endpoint                         /webhooks/{webhook.id}/{webhook.token}
// Rate limiter                     /webhooks/{webhook.id}
// Discord documentation            https://discordapp.com/developers/docs/resources/webhook#modify-webhook-with-token
// 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.
ModifyWebhookWithToken [PATCH]   Same as ModifyWebhook, except this call does not require authentication,
does not accept a channel_id parameter in the body, and does not return
a user in the webhook object.
// ModifyWebhookWithToken [ PATCH ] Same as ModifyWebhook except this call does not require authentication // does not accept a channel_id parameter in the body and does not return // a user in the webhook object . // Endpoint / webhooks / { webhook . id } / { webhook . token } // Rate limiter / webhooks / { webhook . id } // Discord documentation https : // discordapp . com / developers / docs / resources / webhook#modify - webhook - with - token // 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 ModifyWebhookWithToken(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.WebhookToken(id, newWebhook.Token),
		ContentType: httd.ContentTypeJSON,
	})
	if err != nil {
		return
	}
	err = unmarshal(body, &ret)
	return
}
func ModifyWebhookWithToken ( 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 . WebhookToken ( id , newWebhook . Token ) , ContentType : httd . ContentTypeJSON , } ) if err != nil { return } err = unmarshal ( body , & ret ) return }
ModifyWebhookWithToken [PATCH]   Same as ModifyWebhook, except this call does not require authentication,
does not accept a channel_id parameter in the body, and does not return
a user in the webhook object.
ModifyWebhookWithToken [ PATCH ] Same as ModifyWebhook except this call does not require authentication does not accept a channel_id parameter in the body and does not return a user in the webhook object .