You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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.
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
The text was updated successfully, but these errors were encountered: