Guys can i run my old code in discord js still?
Basically, some years ago i made a bot and now i'm trying to bring it back to life without rewriting the whole structure. is it possible ? also is there any link of [email protected] documentation?
24 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 staffV12 is very old, there's lot of things that's changed, upgrade to the latest one, I'd recommend v14
man i can't
i'd have to update all of my 70 commands
it'd be better making a new one
but the v12 documentation still works?
You can start from scratch then, if you can't, we have a guide that can get you started, v12 is deprecated
hmmy
Wrong guide sorry
This one
you mean that things that used to work won't work anymore even installing v12?
Possibly, I haven't worked with v12 so I can't say
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
well, parts of v12 is just slowly deteriorating away, and like others say its recommended to go with v14 and rebuild the bot from scratch
Yo, idk if you've tried Google's Gemini, but you might be able to paste in your version 12 code and ask it to rewrite for version 14.
It's free
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
Try with your index file and one command...see if it works. I bet it will.
(Btw, you'd want a directory with a fresh version 14 install...and then simply add in files as you convert via Gemini.)
@crownley', @Jô 🌈🦄 likely knows better. I've found it helpful at times though. fyi
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
AI will never work reliably for coding, don't try or suggest it
Thanks
I tried it on a 2018 nodeJS code and it updated sucessfully
I just had to change the extension from js to mjs
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
Please stop discussing AI here.
It's not a good tool for this, and it wont be for quite some while.
We have dedicated guides to help you upgrade quick and easy.
https://discordjs.guide/additional-info/changes-in-v13.html
https://discordjs.guide/additional-info/changes-in-v14.html
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View