Bot hosting problem
i will give my code in message
5 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!There is no Intents export in v14, it was renamed. You should read the update guide linked in the channel topic in #djs-help-v14 if you were using v13 before, or stop following whatever outdated guide you're using
Can you try intents: Object.keys(GatewayIntentBits).map((a: string) => {
return GatewayIntentBits[a as keyof typeof GatewayIntentBits];
})
It enables all of intents for you
And do not forget to import GatewayIntentBits
i fix it
Btw you exposed your token. I'd recommend you to reset it