Tutorial Not Working

Im trying to switch over from discord.py to discord.js so im watching a tutorial. I coped the code exactly, the bot shows as online and i have it set up properly, but the messageCreate function isn't working
6 Replies
d.js docs
d.js docs3y ago
• 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.
</> Idris
</> Idris3y ago
add MessageContent intent btw why you selected the RPC label?
LuckyBuda10
LuckyBuda10OP3y ago
ah ok, i come from discord.py so the intents thing is new to me, thanks I didn't really know what it meant, myb
</> Idris
</> Idris3y ago
intents are compulsory since Discord API v9 nothing to do with discord.js you see the intents array that you have in your ClientOptions?
LuckyBuda10
LuckyBuda10OP3y ago
yea?
</> Idris
</> Idris3y ago
add "MessageContent" in it

Did you find this page helpful?