func DeleteWebhookWithToken(client httd.Deleter, id Snowflake, token string) (err error) {
	var e string
	if token != "" {
		e = endpoint.WebhookToken(id, token)
	} else {
		e = endpoint.Webhook(id)
	}

	resp, _, err := client.Delete(&httd.Request{
		Ratelimiter: ratelimitWebhook(id),
		Endpoint:    e,
	})
	if err != nil {
		return
	}

	if resp.StatusCode != http.StatusNoContent {
		msg := "unexpected http response code. Got " + resp.Status + ", wants " + http.StatusText(http.StatusNoContent)
		err = errors.New(msg)
	}
	return
}
// DeleteWebhookWithToken [DELETE]  Same as DeleteWebhook, except this call does not require authentication.
// Endpoint                         /webhooks/{webhook.id}/{webhook.token}
// Rate limiter                     /webhooks/{webhook.id}
// Discord documentation            https://discordapp.com/developers/docs/resources/webhook#delete-webhook-with-token
// Reviewed                         2018-08-14
// Comment                          -
DeleteWebhookWithToken [DELETE]  Same as DeleteWebhook, except this call does not require authentication.
// DeleteWebhookWithToken [ DELETE ] Same as DeleteWebhook except this call does not require authentication . // Endpoint / webhooks / { webhook . id } / { webhook . token } // Rate limiter / webhooks / { webhook . id } // Discord documentation https : // discordapp . com / developers / docs / resources / webhook#delete - webhook - with - token // Reviewed 2018 - 08 - 14 // Comment -
func DeleteWebhookWithToken(client httd.Deleter, id Snowflake, token string) (err error) {
	var e string
	if token != "" {
		e = endpoint.WebhookToken(id, token)
	} else {
		e = endpoint.Webhook(id)
	}
	resp, _, err := client.Delete(&httd.Request{
		Ratelimiter: ratelimitWebhook(id),
		Endpoint:    e,
	})
	if err != nil {
		return
	}
	if resp.StatusCode != http.StatusNoContent {
		msg := "unexpected http response code. Got " + resp.Status + ", wants " + http.StatusText(http.StatusNoContent)
		err = errors.New(msg)
	}
	return
}
func DeleteWebhookWithToken ( client httd . Deleter , id Snowflake , token string ) ( err error ) { var e string if token != " " { e = endpoint . WebhookToken ( id , token ) } else { e = endpoint . Webhook ( id ) } resp , _ , err := client . Delete ( & httd . Request { Ratelimiter : ratelimitWebhook ( id ) , Endpoint : e , } ) if err != nil { return } if resp . StatusCode != http . StatusNoContent { msg := " " + resp . Status + " " + http . StatusText ( http . StatusNoContent ) err = errors . New ( msg ) } return }
DeleteWebhookWithToken [DELETE]  Same as DeleteWebhook, except this call does not require authentication.
DeleteWebhookWithToken [ DELETE ] Same as DeleteWebhook except this call does not require authentication .