19 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Post the full error stack trace, not just the top part!
- Show your code!
- Explain what exactly your issue is.
- Not a discord.js issue? Check out #useful-servers.
- Issue solved? Press the button!channel.send( "Hey I'm Dank Memer" )
^
is my error
That's just the line with the error, not the error itself
This looks like old djs code, what version are you on?
v18.16.0
oh my u ment djs
[email protected]
Yeah your code is outdated
How do I update without messing up everything I have done so far..
There are update guides
Version 14 has released! Please update at your earliest convenience.
- Update:
npm rm discord.js
npm i discord.js
- Update guide (use CTRL
+ F
to search for the old method or property)I have verison 14 tho
Ok but your code isn't for v14
oh ok so I just have to re write my code not update correct?
Yeah
How would I rewrite it?
You read the update guide
But I get the error
ReferenceError: ChannelType is not defined
Then define it
Where???
At the top of the file, probably