From d6b616c58fb2716439422750ac56655b529cefc9 Mon Sep 17 00:00:00 2001 From: robbix1206 Date: Sat, 19 Aug 2017 19:36:29 +0200 Subject: [PATCH] #429-Fix (#432) --- restapi.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/restapi.go b/restapi.go index 68e6afd..836e4a4 100644 --- a/restapi.go +++ b/restapi.go @@ -1863,14 +1863,9 @@ func (s *Session) WebhookEditWithToken(webhookID, token, name, avatar string) (s // WebhookDelete deletes a webhook for a given ID // webhookID: The ID of a webhook. -func (s *Session) WebhookDelete(webhookID string) (st *Webhook, err error) { +func (s *Session) WebhookDelete(webhookID string) (err error) { - body, err := s.RequestWithBucketID("DELETE", EndpointWebhook(webhookID), nil, EndpointWebhooks) - if err != nil { - return - } - - err = unmarshal(body, &st) + _, err = s.RequestWithBucketID("DELETE", EndpointWebhook(webhookID), nil, EndpointWebhooks) return }