From 1e0b308a2bcde4e6b84a00d70217f388302cffc7 Mon Sep 17 00:00:00 2001 From: Essem Date: Sat, 31 Jul 2021 14:41:59 -0500 Subject: [PATCH] Handle another image server error --- classes/imageCommand.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/imageCommand.js b/classes/imageCommand.js index dd6afcc..86f3ce2 100644 --- a/classes/imageCommand.js +++ b/classes/imageCommand.js @@ -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();