fix(Webhook): return void from #delete for consistency. (#5954)

This commit is contained in:
BannerBomb
2021-06-29 08:25:01 -04:00
committed by GitHub
parent fb8d5166a8
commit 5ad83a6a65

View File

@@ -293,10 +293,10 @@ class Webhook {
/**
* Deletes the webhook.
* @param {string} [reason] Reason for deleting this webhook
* @returns {Promise}
* @returns {Promise<void>}
*/
delete(reason) {
return this.client.api.webhooks(this.id, this.token).delete({ reason });
async delete(reason) {
await this.client.api.webhooks(this.id, this.token).delete({ reason });
}
/**