Skip to content

Commit

Permalink
Application component compiler should double check autocomplete stack
Browse files Browse the repository at this point in the history
  • Loading branch information
Didas-git committed May 28, 2024
1 parent 64a4d2e commit 3f5ae64
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/handlers/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -53,6 +53,6 @@
],
"peerDependencies": {
"lilybird": "^0.7.0",
"@lilybird/transformers": "^0.3.0"
"@lilybird/transformers": "^0.4.0"
}
}
2 changes: 2 additions & 0 deletions packages/handlers/src/advanced/application-command-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(""), "}");
}

Expand Down

0 comments on commit 3f5ae64

Please sign in to comment.