This commit is contained in:
Erik 2022-10-10 11:00:59 +03:00
parent 2af1622892
commit 4ce4ba5713
Signed by: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB

View File

@ -92,8 +92,8 @@ class MessageLog extends Setting {
};
let hook = await guild.getWebhook(this.name);
// Ensure the webhook actually exists
hook = await this.client.fetchWebhook(hook.id).catch(() => null);
// Ensure the webhook actually exists, the above method my return a cached hook that may not exist on the api
if (hook) hook = await this.client.fetchWebhook(hook.id).catch(() => null);
if (hook) await hook.edit({ channel });
else {