My discord bot is not reply messages

15 Replies
d.js toolkit
d.js toolkit2y 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.
treble/luna
treble/luna2y ago
messageCreate, not MessageCreate and its not once its on
Kirюша
KirюшаOP2y ago
I'll try it now
Kirюша
KirюшаOP2y ago
not work(
treble/luna
treble/luna2y ago
because messageCreate is not an intent literally just do what i said
!"Unkown
!"Unkown2y ago
chat gpt code ? replace the client.once("MessageCreate …. par client.on("messageCreate ….
treble/luna
treble/luna2y ago
would suprise me since chatgpt doesnt know v14
!"Unkown
!"Unkown2y ago
yeah and it doesnt make mistakes like this
Kirюша
KirюшаOP2y ago
Sorry I'm so stupid, I did everything you said, but the bot doesn't respond(
treble/luna
treble/luna2y ago
place a console log in your messageCreate to see if it fires
Kirюша
KirюшаOP2y ago
I restarted visual Studio and ran the code again and the bot responded, thanks for the help. Can you tell me how to install the bot without restarting Visual Studio?
treble/luna
treble/luna2y ago
save your files then run node again assuming you ctrl c'd the previous process
Kirюша
KirюшаOP2y ago
Okay, thanks again. I just started learning JavaScript, decided to start by creating a discord bot, so sorry for my stupid questions)
treble/luna
treble/luna2y ago
Might be worth checking out #resources as djs isnt quite beginner friendly
Kirюша
KirюшаOP2y ago
Thanks for the information, I'm going to study. good luck!
Want results from more Discord servers?
Add your server