#My bot keeps asking for a specific Permission even though I never declared it in my code.

5 messages · Page 1 of 1 (latest)

final minnowBOT
#

• 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.

odd tangle
#

Did you try console.log(command.botPermissions) in that messageCreate to narrow the issue down?

robust anvil
#

Right, I should also add that the bot works fine on my computer. But it's only on the host where I get that issue

odd tangle
#

Did you maybe forget to upload changes made to one of your files? Or have pm2 using old cached files instead of the new ones?

robust anvil
#

Changes I make locally are uploaded to my VPS automatically when I comit the changes on Github Desktop. GitHub Actions takes care of that, then launches PM2.