From 98e47e379664d8e5c6a055cae093f0c033dd9d04 Mon Sep 17 00:00:00 2001 From: WatDuhHekBro <44940783+WatDuhHekBro@users.noreply.github.com> Date: Mon, 14 Dec 2020 02:13:31 -0600 Subject: [PATCH] Fixed the error prevention in the neko command --- src/commands/fun/neko.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/fun/neko.ts b/src/commands/fun/neko.ts index 1fdcf05..e079581 100644 --- a/src/commands/fun/neko.ts +++ b/src/commands/fun/neko.ts @@ -15,7 +15,7 @@ export default new Command({ any: new Command({ description: "Image type to send.", async run($: CommonLibrary): Promise { - if (!$.args[0] in endpoints.sfw) + if (!($.args[0] in endpoints.sfw)) return $.channel.send("Couldn't find that endpoint!"); let baseURL = 'https://nekos.life/api/v2'; let url = new URL(`${baseURL}${endpoints.sfw[$.args[0]]}`);