You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fix(Webhook): do not call `client.deleteWebhook` in `delete`
Partially reverts #9777 which caused a regression (#9785) when using `WebhookClient`
* chore: add comment
Co-Authored-By: Souji <timoqueezle@gmail.com>
* fix: move `deleteWebhook` from `Client` to `BaseClient`
---------
Co-authored-by: Souji <timoqueezle@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Which package is this bug report for?
discord.js
Issue description
When using
new WebhookClient()
and calling.delete()
on it, it will error with this:This issue happens in 14.13.0 but not in 14.12.1, likely caused by d90ba8d.
A workaround is to use
Client.deleteWebhook()
however this requires a client and bot user to work.Code sample
Versions
Issue priority
Medium (should be fixed soon)
Which partials do you have configured?
No Partials
Which gateway intents are you subscribing to?
Guilds
I have tested this issue on a development release
8eb978d
The text was updated successfully, but these errors were encountered: