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]]}`);