How to make a Discord Bot for Beginners (Discord.js v14)
Vložit
- čas přidán 11. 12. 2022
- How to make a Discord Bot for Beginners (Discord.js v14)
🌐 Important links:
Discord Developer Portal: / discord
Discord.js official website: discord.js.org
Discord Intents List: discord.com/developers/docs/t...
Patreon: / underctrl
Buy me a coffee (one-time donation): buymeacoffee.com/underctrl
🎵 Music Credits:
Track Name: "Blue Boi"
Music By: LAKEY INSPIRED @ / lakeyinspired
Original upload HERE - • LAKEY INSPIRED - Blue Boi
Official "LAKEY INSPIRED" CZcams Channel HERE - / @lakeyinspired
License for commercial use: Creative Commons Attribution 3.0 Unported "Share Alike" (CC BY-SA 3.0) License.
Full License HERE - creativecommons.org/licenses/...
Music promoted by NCM / @chillcopyrightfreemusic
Want me to make you a custom bot? Email me at: avraj@underctrl.io or DM me on Discord: avrajs (PAID WORK)
Source code: github.com/notunderctrl/discordjs-v14-series
Discord server: discord.gg/T4faJeH84A
If anyone is having the problem of "Error: Used disallowed intents", the solution I used is to scroll down untill you see "Privileged Gateway Intents", then just select all of them.
Ty
elaborate?
thanks
tysm
The "privileged gateway intent" boxes that you tick is on the discord website, under the bot folder, tick PRESENCE INTENT, SERVER MEMBERS INTENT, and, MESSAGE CONTENT INTENT. This took me a lot longer to figure out than I am willing to admit.
This playlist of video's are some of the best programming video's i've ever seen. Currently working on a discord bot, and everything you do is so clear and straight to the point, I saves so much time compared to other programming video's. Thank you so much for the effort of creating these video's!!!
bu yorumu yaptığın için teşekkürler. sadece beğene basarak üste çıkarabiliyorum :)
10/10 tutorial guys literally spent the whole afternoon checking out tutorials and this one is the only one that worked because of the V14 update. You deserve way more views 🙌
Fr
Thank you for this, I’m a complete newbie to discord bot.. and programming as a whole. I had been following guides for days with no luck.. didn’t know I was using old code. Followed this step by step and the bot was online within the hour.
WOW just WOW. This is unbelievable that I literally set up my first discord bot successfully like literally just following along. I cant thank you enough. The way you explained every detail in depth and in such beginner friendly way was just awesome. Thank you so much!!
Thank you, very straightforward compared to many other tutorials out there. Keep it up! 👍
out of all the tutorials i've watched, this one is definetely the best! Tysm!!
The series is so awesome, everything is explained very well. Thank you for creating such videos!!
🤩
I remember spending hours and hours to debug just because of intents haha, finally someone who could relate to it! I really appreciate your effort, please keep up with the tutorials!
Solid video, can't wait to follow along with the rest of the series. Apprecaite you taking the time to explain even the little things.
This tutorial is *amazing!* The documentation is enough of 8 stars! Better than the entire Discord's documentation. The creator gives answers quickly and the Discord server is helpful! *10/10* overall!
@Storm Debater Lmao
This is the kind of tutorial we need! Great explanation!👍 I liked and subscribed
Thank you for such amazing tutorials, they are really useful and simple to understand!
I love how you included the .env portion in this tutorial :)
Thank you so so much, ive not been making bots since discord js v12 which is 2 years ago, and now i've started again, i tried following the discord js v14 guide but theres many mistakes and non necessary type things in the guide, so following you was much better. Thank you for getting me back into this!(:
Same happened with me too I didn’t put the proper valid intents in my bot I spent a whole day debugging the code and asked many people in the discord about it but it didn’t help me lot , so started finding proper tutorial in CZcams I saw ur Video and rest is history ! Now I can continue my bot making program ( I was near to give on coding but ur video saved me THANKS A LOT)
keep up the good work. literally the best and most understandable tutorial. thank you
appreciate the tutorial man, really really useful to get the basics done.
Very straight forward and simple tutorial bro. Thank you so much!
Your explanation goes right into my head. Nice one
yoo it took me forever to get anything working today and this is the only video that actually helped thx alot
also the only video that actually helped me understand things like guilds, intents ect.
Great Video! Had some problems in the start but it worked out super good! cant wait to learn more from you!
Epic Tutorials, just trying to explain everything, and I even understood, you just earned a subscriber
I got stuck with other posters' videos, but thanks to your video I was able to successfully create the bot. thanks so much.
Many of the other posters omitted the part of generating the package.json, but you explained it, which was helpful. Also, you explained the meaning of each movement. It was amazing.
Hey man. I'd like to tell you that it was nice to watch this tutorial. Good video. Keep up the good work.
10/10, First guide that explains why the other 7 guides that I've tried didn't work.
I DID IT TYSM! I STRUGGLED SO MUCH FOR THE PAST 2 YEARS AND I *F I N A L L Y* DID IT! You got yourself a sub bro, keep up the good work!
If you get an error saying "cannot be loaded because running scripts is disabled on this system." while trying to "nodemon", I found a solution for that.
This is for windows btw.
I searched this online, and it seems you have to allow "untrusted" scripts to run on your computer.
To do that, you have to open PowerShell as an administrator.
If you type in "Get-ExecutionPolicy", you probably should get "Restricted".
We want to change that.
So, you should type in "Set-ExecutionPolicy RemoteSigned" and then press "y".
To confirm the change, type again "Get-ExecutionPolicy". It should say "RemoteSigned" now.
That should solve the problem :)
Not Working for me😥😥.Any suggestions please
Thanksss!!!!!
ohhhhhhhhhhhhhhhh! thanks
@@Not_Mood try typing in "Set-ExecutionPolicy RemoteSigned -Scope CurrentUser" and then press "Y"
thanks!
Thank you! Your tutorial is so easy to understand & follow
This video was extremely helpful, thank you! 👍
4:20 I put in the code but it's popping up with bash: npm: command not found. I have no idea what I'm doing wrong :/
Same
Same. I think its cause we are on a different OS or something.
Very well put tutorial. Thank you very much my man you really teached me alot today.
This is the best tutorial series out there. Very easy to understand and replicate. Make sure you have the syntax right in you are not experienced in JS. Would recommend writing down terminal commands. 10/10
This video is so well done! Everything is explained and easy to understand. Seriously you've done a really good tutorial.
Thanks a lot for these tutorials, they were immensely helpful. I wanted to do a simple discord bot for fun and you are super clear and to the point, while also explaining things in appropriate detail! Cheers :)
Thank you so much! I'm using this as my first ever coding project and im so excited. Wanted to share a dumb mistake i spent way too long fixing. I'm dyslexic, and apperently i typed client twice in the first line and then nodemon wouldnt work. and it took me til just now to figure out the problem haha
OMG I CANT THANK YOU ENOGH!
your tutorials are the best of the best (new sub)
Your tutorials have been very helpful. Thank you for taking the time and effort to make these videos.
this is first video which helped me. thank you!
I love u so much, you explain things so well! thank you for this tutorial ♥
one of the best tutorials i've watched. thank you!
Thank you so much :)
Hey, I'm just at the 5th video but for now it's really interesting, complete and easy to understand even though I'm not english nativ ! You care to explain a lot more than other tutorials and it seems you're going through all main topics in your playlist. Rythme is nice, finding a nice, complete and up to date guide on discord bots is hard these days :D
Thanks a lot for your work ! You'll get my thumbs up, no doubts !
You speak great english
I am also not english nativ and also find it super cool!
love this tutorial! Thank you so much
Wow Awesome explanation. Subscribed you in 1st video.
10/10, the best guide i've ever seen!
Your way of teaching is wonderful! I am a Next JS dev, but very rusty at the time! I couldn't understand the "fancy words" in the documentation, but with your guidance I can progress way faster! Hopefully things haven't got depreciated since it's been a while haha. Much love ❤
The best video on the topic I was able to find
excellent guide, good way to explain the basics
Great tutorial! For those of you that received a MODULE_NOT_FOUND error after doing *"npm install dotenv"*, do the *"npm install discord.js"* command again and it should work. If this doesn't work, read through the error that you are getting and look for the module that it can't find. For example, my error was:
[nodemon] starting `node src/index.js`
node:internal/modules/cjs/loader:1051
throw err;
Error: Cannot find module 'discord.js'
Require stack:
That's why you would have to do the *"npm install discord.js"* command because for some reason it got removed when I did the *"npm install dotenv"* command.
Reason for this in most cases, is people usually edit their package.json while installing packages. This tends to lead to an outdated package.json. The fix you mentioned is correct. Just reinstalling should fix it!
Man i've been looking for a way to solve it for hours. God bless you
❤❤❤
@mr0mooz368 Glad to hear this worked for you and good luck in your learning!
Thanks so much for this!
thank you! this is so useful and clear!
I'm planning on making a bot for the friend that can notify discord members when he uploads, hopefully I'm starting at the right place to do it, thanks for the tutorial!
thanks bro, very helpful!
Thank you very much, i have been trying since 3 years, you did the proper and best tutorial!
3 years 💀💀💀
thank you for the video, amazing way to teach :)
Great video. Thank you!
100/10 Ive watched other tutorials and couldnt figure it out how to set it up properly, Im new to coding but your video is so easy to understand that I managed to do it :D woohoo
Thanks! Super helpful
your video is very useful i hope to complete the course and don't stop uploading videos
thx for help
I restarted the process 3 times and followed along side you in x0.75 speed. I keep getting this when i use command nodemon in the terminal
nodemon : The term 'nodemon' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is
correct and try again.
At line:1 char:1
+ nodemon
+ ~~~~~~~
+ CategoryInfo : ObjectNotFound: (nodemon:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Wow! Your content is amazing! You have some proper teaching skills! You are the 🐐my friend! Respect!
excellent video. very detailed. coupled with chatGPT I was able to get it right and I have my own discord bot. will be watching much more subbed and notified : )
Thank youuu!! This works!
This is so cool!
your'e so amazing person brother thanks for your tutorial I've subscribed and will follow hope you will upload more content like this tutorial I wants to learn and you explain every detail as I expect. thanks.
Great tutorial!
nice channel name. sounds cool and intuitive
nice tutorial, thank you so much
Thanks very useful.
best tutorials on youtube fr
Thanks for the tutorial love it!!!!!!
For a kid who wants to start coding it s just amazing thanks
Same
How do I make it so it checks for user cooldown like if someone gets a promotion (roblox) it says that “Cool-down ends on the (DATE) using the / command
Thank you so much!
Nah your explanation is fireeeeee 🔥🔥🔥
Thank you so very much !
The best tutorial so far 🥰🥰🥰
best amazing tutorial ever.
It always gives me an error that the term 'npm' is not recognized as the name of a
cmdlet, function, script file, or operable program. Check
the spelling of the name, or if a path was included, verify
that the path is correct and try again.
I tried checking as I can but I'm still too new to this stuff.
thanks for the amazing tutorial \^o^/
I LOVE YOU, BRO YOU HELPED ME SO MUCH BRO I REALLY DON'T KNOW WHAT TO SAY BRO
You’re so Calm
I cant invite my bot when i go there its telling me "Please enter a redirect uri" when i manually enter that in "OAuth2" and try to invite then it's telling me "{"client_id": ["This field is required"]}".
13:14
do I need nodemon or can I install node fetch suggested by someone?
thanks a lot man! finally ı found my problem
at 13.46 when i run the command the terminal says [nodemon] app crashed - waiting for file changes before starting...
You deserve a award
hi! its saying
TypeError: Cannot read properties of undefined (reading 'GUILD_MESSAGES')
at Object.
for some reason, can anyone help?
whenever i use "nodemon an error says something like "AppData\Roaming
pm
odemon.ps1 cannot be loaded because
running scripts is disabled on this system." how can i fix this?
idk what to do i keep getting this error [nodemon] app crashed - waiting for file changes before starting...
It said
Node.js v18.14.2
[nodemon] app crashed - waiting for file changes before starting...
Ive already tried to kill all nodes but it still doesn't change the error. How do I fix this?
awesome video ! a question, what did u make to show that ure using vs code in the discord
Discord Presence extension in VS Code
Great tutorial
for me, when i was writing the "sudo install -g nodemon", there was red writing saying that i couldnt do this script. I dont realy knew what to do can someone help me out?
when i type "hello" in discord, it says "[nodemon] app crashed - waiting for file changes before starting..." can someone help?
Thank you!
Is it okay if I'm not naming the environment '.env'? Cause in replit you can't named it like that
If you get the error "[nodemon] app crashed - waiting for file changes before starting..." around 13:30 you may have to set the file path manually with the command since it sometimes does not account for the src folder. For example, I ran "nodemon C:\discord-bot\src\index.js" and it worked.
i had the same problem, but thats because i had only been saving the index.js folder and not the package folder. double check that main is src/index.js not just index.js
@@sdewwuhow do I do that
it still does not work for me
nodemon C:\discord-bot\src\index.js this will work
Thank you so much
Hey, I searched through the other comments and dont see an answer to this - any idea? Im getting this error aroudn the 13:40 mark "[nodemon] app crashed - waiting for file changes before starting..."
I just posted in the discord so hopefully you or someone there can help
when i run the nodemon it says clean exit - waiting for changes before restart what do i do