Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
robbix1206 authored and iopred committed Aug 19, 2017
1 parent 9e37209 commit 0ed6f35
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions restapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 0ed6f35

Please sign in to comment.