Skip to content
This repository was archived by the owner on Aug 22, 2024. It is now read-only.
This repository was archived by the owner on Aug 22, 2024. It is now read-only.

getInteractionGroupTree TypeError #69

Description

@Marantesss

Whenever I try to tun a simple slash command, I get a TypeError in the getInteractionGroupTree(interaction) method.

Error Stack

(node:13002) DeprecationWarning: The interaction event is deprecated. Use interactionCreate instead
(Use `node --trace-deprecation ...` to show where the warning was created)
internal/process/warning:50
TypeError: _a.values is not a function
    at getOptionsTree (/home/marantesss/Documents/marantilhas/node_modules/@typeit/src/Client.ts:296:58)
    at Client.getInteractionGroupTree (/home/marantesss/Documents/marantilhas/node_modules/@typeit/src/Client.ts:300:5)
    at Client.executeSlash (/home/marantesss/Documents/marantilhas/node_modules/@typeit/src/Client.ts:362:23)
    at Client.<anonymous> (/home/marantesss/Documents/marantilhas/src/App.ts:41:12)
    ...

Debug screenshot

image

Node version

I'm actually using nvm to manage my node versions. But both my default and debug versions are 16.9.0.

My package.json

"scripts": {
    "dev": "nodemon --config nodemon.json src/App.ts",
    "build": "tsc",
    "start": "node dist/App.js",
    "lint": "eslint src/.",
    "test": "echo 'Your tests are in another castle 🏰'"
  },
  "dependencies": {
    "@typeit/discord": "^5.0.13",
    "discord.js": "^13.1.0",
    "dotenv": "^10.0.0",
    "reflect-metadata": "^0.1.13"
  },
  "devDependencies": {
    "@types/node": "^16.7.13",
    "@typescript-eslint/eslint-plugin": "^4.31.0",
    "@typescript-eslint/parser": "^4.31.0",
    "eslint": "^7.32.0",
    "eslint-config-prettier": "^8.3.0",
    "eslint-plugin-prettier": "^4.0.0",
    "nodemon": "^2.0.12",
    "prettier": "^2.3.2",
    "ts-node": "^10.2.1",
    "tslib": "^2.3.1",
    "typescript": "^4.4.2"
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions