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
d.js toolkit
d.js toolkit8mo ago
- 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 staff
NyR
NyR8mo ago
V12 is very old, there's lot of things that's changed, upgrade to the latest one, I'd recommend v14
d.js docs
d.js docs8mo ago
:guide: Additional Information: Updating from v12 to v13 read more :guide: Additional Information: Updating from v13 to v14 read more
>crown'ley
>crown'leyOP8mo ago
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?
NyR
NyR8mo ago
You can start from scratch then, if you can't, we have a guide that can get you started, v12 is deprecated
d.js docs
d.js docs8mo ago
:guide: Getting Started: Introduction read more
>crown'ley
>crown'leyOP8mo ago
hmmy
NyR
NyR8mo ago
Wrong guide sorry
d.js docs
d.js docs8mo ago
:guide: Home: Introduction read more
NyR
NyR8mo ago
This one
>crown'ley
>crown'leyOP8mo ago
you mean that things that used to work won't work anymore even installing v12?
NyR
NyR8mo ago
Possibly, I haven't worked with v12 so I can't say
Unknown User
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View
Toast
Toast8mo ago
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
the_1king
the_1king8mo ago
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
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View
the_1king
the_1king8mo ago
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
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View
d.js docs
d.js docs8mo ago
Suggestion for @crownley': :guide: Additional Information: Updating from v12 to v13 read more Suggestion for @crownley': :guide: Additional Information: Updating from v13 to v14 read more
ahmood
ahmood8mo ago
AI will never work reliably for coding, don't try or suggest it
>crown'ley
>crown'leyOP8mo ago
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
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View
chewie
chewie8mo ago
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
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server