Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error #6

Open
zynox31 opened this issue Nov 5, 2024 · 1 comment
Open

Error #6

zynox31 opened this issue Nov 5, 2024 · 1 comment

Comments

@zynox31
Copy link

zynox31 commented Nov 5, 2024

[email protected] deploy
node ./deploy-commands.js /a

C:\Users\share\Desktop\ShopBot\deploy-commands.js:14
commands.push(command.data.toJSON());
^

TypeError: command.data.toJSON is not a function
at Object. (C:\Users\share\Desktop\ShopBot\deploy-commands.js:14:29)
at Module._compile (node:internal/modules/cjs/loader:1469:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
at Module.load (node:internal/modules/cjs/loader:1288:32)
at Module._load (node:internal/modules/cjs/loader:1104:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12)
at node:internal/main/run_main_module:28:49

Node.js v20.18.0
image

@DragonJules
Copy link
Owner

I'm, sorry I currently have no time to look at this error, it seems like there's a command with incorrect data, but I can't be sure without further debugging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants