Check if my bot has perms in a channel?
Isn't this the correct way to do it?
I am on v14.3.0 though that was not an option for the tags.
12 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.Okay, no error but it is sending me a message by default saying that it can't send messages in the channel I ran the command in when before I added this code, it could just fine. So I know it can but it just stops at this...
you’re mixing v13 and v14 classes
run
npm ls discord.js
and show the outputI literally just updated to v14.3.0
Ran uninstall and install @latest
run npm ls discord.js
and show the output
Like I said, just updated...
^
^
I updated them all...
Still stops here:
if (botPermissionsIn.has(Discord.PermissionsFlagsBits.SendMessages))
Same thing.
Figured it out.
yeah forgot the negation ._.