contextmenubuilder
when using it console log channel.istextbase is not a fuction
20 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 OPi don't see you using
isTextBased
and .targetMessage
can also return an APIMessage so you'll need to check if its in a cached guilddoes it need partial

you aren't doing this in the code you gave us
:Thinkeng: ?
you aren't doing
channel.isTextBased()
in the code abovewhere to add this that i could do
well this error isn't coming from the code you had sent above
ah it's happening internally
@Unicorn. can you log
also what intents do you have?
message
it also show this
Can you run
npm ls discord.js
?i tried console log message
I just realised that won't work because the error occurs before djs emits the interactionCreate event

Update
update handler
oh
i'll try
Not just that other package, your base package dependency as well
14.7.1 is from a fair bit ago and seems to still include that known channel issue
oh thx
it works