Error when handling commands
TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received undefined
at new NodeError (node:internal/errors:393:5)
at validateString (node:internal/validators:163:11)
at Module.require (node:internal/modules/cjs/loader:1054:3)
at require (node:internal/modules/cjs/helpers:103:18)
at Object.<anonymous> (C:\Users\luizs\Documents\Bot\commands\create.js:1:118)
at Module._compile (node:internal/modules/cjs/loader:1159:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
at Module.load (node:internal/modules/cjs/loader:1037:32)
at Module._load (node:internal/modules/cjs/loader:878:12)
at Module.require (node:internal/modules/cjs/loader:1061:19) {
code: 'ERR_INVALID_ARG_TYPE'
}
13 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
corrected it
but now is this error
TypeError: Cannot read properties of undefined (reading 'toJSON')
at Object.<anonymous> (C:\Users\luizs\Documents\Bot\deploy-commands.js:12:32)
at Module._compile (node:internal/modules/cjs/loader:1159:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
at Module.load (node:internal/modules/cjs/loader:1037:32)
at Module._load (node:internal/modules/cjs/loader:878:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
gonna show u guys
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
it does
idk why it isnt working in my pc
in my notebook with the same code was alright
laptop*
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
how can i make it work?
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
ooohhh
didnt notice it
thx a lot