From 3f5ae64c97ed8d61e675c063471ff47efbf6b99f Mon Sep 17 00:00:00 2001 From: DidaS Date: Tue, 28 May 2024 08:42:56 +0100 Subject: [PATCH] Application component compiler should double check autocomplete stack --- packages/handlers/package.json | 4 ++-- packages/handlers/src/advanced/application-command-store.ts | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/handlers/package.json b/packages/handlers/package.json index 1b6d4f9..a4cf98f 100644 --- a/packages/handlers/package.json +++ b/packages/handlers/package.json @@ -1,6 +1,6 @@ { "name": "@lilybird/handlers", - "version": "0.6.0-beta.0", + "version": "0.6.0-beta.3", "description": "Command handlers and more for lilybird", "main": "./dist/index.js", "author": "DidaS", @@ -53,6 +53,6 @@ ], "peerDependencies": { "lilybird": "^0.7.0", - "@lilybird/transformers": "^0.3.0" + "@lilybird/transformers": "^0.4.0" } } \ No newline at end of file diff --git a/packages/handlers/src/advanced/application-command-store.ts b/packages/handlers/src/advanced/application-command-store.ts index 49c153f..1f8793b 100644 --- a/packages/handlers/src/advanced/application-command-store.ts +++ b/packages/handlers/src/advanced/application-command-store.ts @@ -249,6 +249,8 @@ export class ApplicationCommandStore { if (cmdArr.length > 2) arr.push(cmdArr.join(""), "}"); if (autoArr.length > 1) { if (arr.length === 0) autoArr[0] = autoArr[0].slice(5); + // eslint-disable-next-line @typescript-eslint/prefer-string-starts-ends-with + if (autoArr[1][0] === "e") autoArr[1] = autoArr[1].slice(5); arr.push(autoArr.join(""), "}"); }