39 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- β
Marked as resolved by OPUnknown Userβ’9mo ago
Message Not Public
Sign In & Join Server To View
Hi i dont understand
this was a template from github
@JΓ΄ ππ¦ Ok i understand now so how do i make it work for all servers
@JΓ΄ ππ¦ Node.js v21.6.2
PS C:\Users\clou1\OneDrive\Desktop\atom bot> node .
C:\Users\clou1\OneDrive\Desktop\atom bot\index.js:9
const foldersPath = path.join(__dirname, 'commands');
^^^^^
SyntaxError: Unexpected token 'const'
at internalCompileFunction (node:internal/vm:77:18)
at wrapSafe (node:internal/modules/cjs/loader:1290:20)
at Module._compile (node:internal/modules/cjs/loader:1342:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1437:10)
at Module.load (node:internal/modules/cjs/loader:1212:32)
at Module._load (node:internal/modules/cjs/loader:1028:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:142:12)
at node:internal/main/run_main_module:28:49
Node.js v21.6.2
PS C:\Users\clou1\OneDrive\Desktop\atom bot> node .
node:internal/modules/cjs/loader:1458
throw err;
^
SyntaxError: C:\Users\clou1\OneDrive\Desktop\atom bot\config.json: Unexpected token 'm', "module.exp"... is not valid JSON
at parse (<anonymous>)
at Module._extensions..json (node:internal/modules/cjs/loader:1455:39)
at Module.load (node:internal/modules/cjs/loader:1212:32)
at Module._load (node:internal/modules/cjs/loader:1028:12)
at Module.require (node:internal/modules/cjs/loader:1237:19)
at require (node:internal/modules/helpers:176:18)
at Object.<anonymous> (C:\Users\clou1\OneDrive\Desktop\atom bot\index.js:2:38)
at Module._compile (node:internal/modules/cjs/loader:1378:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1437:10)
at Module.load (node:internal/modules/cjs/loader:1212:32)
Node.js v21.6.2
PS C:\Users\clou1\OneDrive\Desktop\atom bot>
Unknown Userβ’9mo ago
Message Not Public
Sign In & Join Server To View
ok
Unknown Userβ’9mo ago
Message Not Public
Sign In & Join Server To View
yes
Unknown Userβ’9mo ago
Message Not Public
Sign In & Join Server To View
yes
Unknown Userβ’9mo ago
Message Not Public
Sign In & Join Server To View
oh ok
Unknown Userβ’9mo ago
Message Not Public
Sign In & Join Server To View
i did
yntaxError: C:\Users\clou1\OneDrive\Desktop\atom bot\config.json: Unexpected token 'm', "module.exp"... is not valid JSON
at parse (<anonymous>)
at Module._extensions..json (node:internal/modules/cjs/loader:1455:39)
at Module.load (node:internal/modules/cjs/loader:1212:32)
at Module._load (node:internal/modules/cjs/loader:1028:12)
at Module.require (node:internal/modules/cjs/loader:1237:19)
at require (node:internal/modules/helpers:176:18)
at Object.<anonymous> (C:\Users\clou1\OneDrive\Desktop\atom bot\deploy-commands.js:2:38)
at Module._compile (node:internal/modules/cjs/loader:1378:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1437:10)
at Module.load (node:internal/modules/cjs/loader:1212:32)
Unknown Userβ’9mo ago
Message Not Public
Sign In & Join Server To View
i delete half of the token
Unknown Userβ’9mo ago
Message Not Public
Sign In & Join Server To View
i dont understand
Unknown Userβ’9mo ago
Message Not Public
Sign In & Join Server To View
how i got that error
Unknown Userβ’9mo ago
Message Not Public
Sign In & Join Server To View
im not
how am i doing that
Unknown Userβ’9mo ago
Message Not Public
Sign In & Join Server To View
Unknown Userβ’9mo ago
Message Not Public
Sign In & Join Server To View
just tell me
Unknown Userβ’9mo ago
Message Not Public
Sign In & Join Server To View
whats wrong
Unknown Userβ’9mo ago
Message Not Public
Sign In & Join Server To View
fixed it
now im getting this
WARNING] The command at C:\Users\clou1\OneDrive\Desktop\atom bot\commands\utility\steal-emoji.js is missing a required "data" or "execute" property.
[WARNING] The command at C:\Users\clou1\OneDrive\Desktop\atom bot\commands\utility\whois.js is missing a required "data" or "execute" property.
Started refreshing 0 application (/) commands.
C:\Users\clou1\OneDrive\Desktop\atom bot\index.js:8
deployCommandsF()
^
TypeError: deployCommandsF is not a function
at Object.<anonymous> (C:\Users\clou1\OneDrive\Desktop\atom bot\index.js:8:1)
at Module._compile (node:internal/modules/cjs/loader:1378:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1437:10)
at Module.load (node:internal/modules/cjs/loader:1212:32)
at Module._load (node:internal/modules/cjs/loader:1028:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:142:12)
at node:internal/main/run_main_module:28:49
Node.js v21.6.2
PS C:\Users\clou1\OneDrive\Desktop\atom bot>
Unknown Userβ’9mo ago
Message Not Public
Sign In & Join Server To View
opps
Unknown Userβ’9mo ago
Message Not Public
Sign In & Join Server To View
ok
/sloved
?sloved
!sloved
/sloved
?
Unknown Userβ’9mo ago
Message Not Public
Sign In & Join Server To View