Issue Launching
I'm having issues with my discordjs. Idk why its just not working at all
9 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 OPC:\Users\Kars\Documents\GithubRepos\PublicDJSBot>npm list discord.js
[email protected] C:\Users\Kars\Documents\GithubRepos\PublicDJSBot
`-- [email protected]
C:\Users\Kars\Documents\GithubRepos\PublicDJSBot>node -v
v20.17.0
Im using ts thats compiled down to js
Please ping me if you have any fixes
sorry i was out when you sent the message
sorry for the late response
discord.js includes multiple sub-packages, installing these separately can mess with internal code:
❌ Build failed with the following error:
src/handlers/Command.ts(2,22): error TS2307: Cannot find module '@discordjs/rest' or its corresponding type declarations.
src/handlers/Command.ts(82,17): error TS7006: Parameter 'e' implicitly has an 'any' type.s
so what now?
ahh ok
nope still broken
{
"name": "discordjs-v14-bot",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"dev": "tsx watch src/index.ts",
"start": "node build/index.js",
"build": "node build.js",
"go": "node build.js && node build/index.js",
"obfuscate": "node obfuscate.js"
},
"keywords": [],
"author": "Kars",
"license": "GNU",
"dependencies": {
"axios": "^1.7.3",
"better-sqlite3": "^11.1.2",
"canvas": "^2.11.2",
"chalk": "^4.1.2",
"discord.js": "14.16.3",
"dotenv": "^16.0.2",
"figlet": "^1.7.0",
"javascript-obfuscator": "^4.1.1",
"knex": "^3.1.0",
"mongoose": "^6.5.4",
"path": "^0.12.7",
"sqlite": "^5.1.1",
"sqlite3": "^5.1.7"
},
"devDependencies": {
"@types/better-sqlite3": "^7.6.11",
"@types/figlet": "^1.5.8",
"@types/node": "^20.14.12",
"tsx": "^4.16.2",
"typescript": "^5.5.4"
},
"overrides": {
"discord-api-types": "0.37.20"
}
}
still broked
sorry if you want access to the codebase feel free to ask this is going to be open source eventually so I don't really mind, I just don't know why ts not working locally rn
oh my word am i blind
OMG IT WORKED
AHHH
thank you so much Qjuh
ily gng 😭
Thank you so much
I hopie u have a wonderful day