Help with a code from ChatGPT.
Hey, im mostly new to coding.
I have a basic understanding of how the code should look. I can do basic reads.
But this is my first time coding a bot. I used chat gpt along with the discord.js api docs
Can anyone take a look at my code and help me correct the Gateway intents.
I tried 2 different formats and neither of them work
Yall can skim through the code and tell me other mistakes.
but my main this is that when i run the code it tells me something with wrong with my gateway intent line of code
https://github.com/MAJ-TT/Bot5
GitHub
GitHub - MAJ-TT/Bot5: Test try for a discord bot. Only Hey, Help an...
Test try for a discord bot. Only Hey, Help and Ping commands - GitHub - MAJ-TT/Bot5: Test try for a discord bot. Only Hey, Help and Ping commands
6 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!
- ✅
Marked as resolved by staffi actually did it alr but ran into the same kind of problem thats why i turned to chat gpt to see if i could get it from scratch.
But i'd try it back and see how it goes
A solid understanding of js is required before making a discord bot, so if you dont, #resources
Actually I did it, im proud of myslef..
I'm planing on making an economy bot, i got the base off so i'd go research more into it.
If there is a docs realted to eco commands i'd appreciate a link
is it fine if i gave my question back here? Its different from the initial question its now to do with the cool down
edit: nvm fixed it