check to see if new channel is a category or a text channel
is there away to see if the new channel is a category or text channel and only do something if so?
7 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 OPcompare the type with the ChannelType enum
channel.type === 4
use the enum
for catagory
that way you dont have to ask that question
It is this which i crorrected wrongly because i thought i said it wrong