Skip to content

Commit

Permalink
fix: use super on webhook delete
Browse files Browse the repository at this point in the history
Co-authored-by: Kyra <kyradiscord@gmail.com>
  • Loading branch information
jaw0r3k and kyranet committed Oct 22, 2023
1 parent 8964504 commit b25d43e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/discord.js/src/structures/Webhook.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ class Webhook {
* @returns {Promise<void>}
*/
delete(reason) {
return this.client.deleteWebhook(this.id, { token: this.token, reason });
return super.client.deleteWebhook(this.id, { token: this.token, reason });
}

/**
Expand Down

0 comments on commit b25d43e

Please sign in to comment.