Handle another image server error

This commit is contained in:
Essem 2021-07-31 14:41:59 -05:00
parent 77ca0fd344
commit 1e0b308a2b
No known key found for this signature in database
GPG Key ID: 7D497397CC3A2A8C
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ class ImageCommand extends Command {
name: `${this.constructor.command}.${type}`
};
} catch (e) {
if (e.toString().includes("Not connected to image server")) return "I can't seem to contact the image servers, they might be down or still trying to start up. Please wait a little bit.";
if (e.toString().includes("Not connected to image server") || e === "No available servers") return "I can't seem to contact the image servers, they might be down or still trying to start up. Please wait a little bit.";
throw e;
} finally {
if (status && await this.client.getMessage(status.channel.id, status.id).catch(() => undefined)) await status.delete();