Skip to content

Commit

Permalink
fix(Webhook): return void from #delete for consistency. (#5954)
Browse files Browse the repository at this point in the history
  • Loading branch information
BannerBomb committed Jun 29, 2021
1 parent fb8d516 commit 5ad83a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/structures/Webhook.js
Expand Up @@ -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 });
}

/**
Expand Down

0 comments on commit 5ad83a6

Please sign in to comment.