Fix build

This commit is contained in:
Qais Patankar
2019-06-17 15:25:23 +01:00
parent 0ea5c4eaef
commit b130152e2a

View File

@@ -201,7 +201,7 @@ func (b *Bdiscord) webhookExecute(webhookID, token string, wait bool, data *disc
} }
response, err := b.c.RequestWithBucketID("POST", uri, data, discordgo.EndpointWebhookToken("", "")) response, err := b.c.RequestWithBucketID("POST", uri, data, discordgo.EndpointWebhookToken("", ""))
if !wait || err != nil { if !wait || err != nil {
return return nil, err
} }
err = json.Unmarshal(response, &st) err = json.Unmarshal(response, &st)
@@ -209,5 +209,5 @@ func (b *Bdiscord) webhookExecute(webhookID, token string, wait bool, data *disc
return nil, discordgo.ErrJSONUnmarshal return nil, discordgo.ErrJSONUnmarshal
} }
return return st, nil
} }