mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 02:53:31 +01:00
fix(Webhook): return void from #delete for consistency. (#5954)
This commit is contained in:
@@ -293,10 +293,10 @@ class Webhook {
|
|||||||
/**
|
/**
|
||||||
* Deletes the webhook.
|
* Deletes the webhook.
|
||||||
* @param {string} [reason] Reason for deleting this webhook
|
* @param {string} [reason] Reason for deleting this webhook
|
||||||
* @returns {Promise}
|
* @returns {Promise<void>}
|
||||||
*/
|
*/
|
||||||
delete(reason) {
|
async delete(reason) {
|
||||||
return this.client.api.webhooks(this.id, this.token).delete({ reason });
|
await this.client.api.webhooks(this.id, this.token).delete({ reason });
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user