TypeError: pendingTicketsChannel.createChannel is not a function
This used to work, but discordjs has been updated throughout the years and now it just throws the following terminal error.
10 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 OPThat wouldn't have worked since about v11
guild.channels.create
is how you do it currentlyso like. pendingTicketsChannel.guild.channels.create
like i dont code
I don't know what pendingTicketsChannel is
If you don't code it's going to be very hard to help you
i know like a bit..
does this answer that question.
No, doesn't show me what it is. But it implies it's probably a guild. There's a lot more than that which needs updating here though, likely the entire bot
Why was it updated to v14?
thought to update it to the latest,
You jumped three major versions
There are going to be a huge number of changes to make
alright i get that. is there like any way to use older versions
not really, and you wouldn't get any support for them since v11 has been unsupported for a few years now
v13 is currently the oldest major version still supported, v14 is the current major version