It's been almost 2 years since I watched this and it really helped me a lot. Also inspired me to be a programmer. I'm currently a 1st year major in computer science. Thanks a lot for the help man
DUDE. I DON'T KNOW HOW TO THANK YOU ENOUGH!!!!! It has been a very long time since I've wanted to make my (very own) Discord bot. I have watched/read several tutorials, but they never worked. You, have not only explained it in the clearest way possible, but you have also made it very quick! I seriously don't know how to thank you enough. I am eager of watching your second tutorial! Thanks a lot again!
Hey I love you I don’t think anyone has explained the basics this well. I feel like I really understand what I’m doing and why I’m doing it. I really appreciate this video.
For those who are with problems to turn the bot online, I found how to resolve. First, go to Visual studio, then you go to terminal and open a new one. Then you write "npm i discord.js@12.5.3", after this press enter wait. This will install an older version of discord.js. Then fill in the command "node main.js (or the name that you wrote to the file)" than press enter this should work. I hope this helps.
To those whose terminal that just does nothing, remember to save your work! It took me like a full hour to realize that I didn't save my project. So I guess if you don't save it reads nothing.
Thank you so much for making a tutorial on this. I tried learning java script years ago when I was in 3rd grade while trying to make a minecraft mod. I made it about halfway through before giving up. Now im in high school and I've realized that learning java script and other languages can be very beneficial for my future. Now I can learn a coding language while having fun and making something that can be useful to my friends. Thank you
Thanks for making this series simple to learn. I tried many other options but with my brain disabilities and whatnot, it was just so tough to learn to code but just copy and pasting what you do + learning what I'm doing at the same time really helps! I can't wait to edit the code to make my own bot.
@@alika4393npm init is the "initial" to create the files of your source. This needs to be the first thing you do. What I like to do is directly use Visual Studio Code and open the folder we are using - go to terminal - new terminal - type in npm init - then you should be good.
@@ikidnappedyourrice7567 i know whenever i watch a vid it looks easy but when doing it it will take much more time than expected and sometimes don't work :/
Yoooo I'm going to uni for computer science in the fall and I've always wanted to start early and program small things on my own but sometimes I end up getting stumped, I hope I can get somewhere with these vids and I'll for sure be watching these on end!
Goodluck! I am in my second year and I'm gonna be learning java next semester. This semester I'm stuck with internet foundations, visual basic programming, and structure design. Also, math. Lots of hard math.
YOU ARE AN ABSOLUTE LEGEND! I've been interested in coding for some time, and i reeally wanted to create a cool bot for my server that is "homemade" for my friends and I! this tutorial is so simple thansk so much again. would 1000% recommend
For those of you running into the 'system cannot find path' issue, here is a quick and easy way I figured out: 1. Open and run cmd 2. Type, "cd onedrive" 3. Type, "cd Desktop" 4. Type, "cd (discord bot file name)" That should work, make sure your folder is under Desktop. Just right click in the empty area under all the other files, hit 'new' then hit 'file' and a new file ready for you to rename should be there!
An update for those who are watching this vid as of I'm making this comment, the main.js code has changed into this const { Client, GatewayIntentBits, Partials } = require('discord.js'); const client = new Client({ intents: [GatewayIntentBits.Guilds], partials: [Partials.Channel] }); So make sure you change those before running 'node .' in the cmd you're welcome 😉
For people who are having the "CLIENT_MISSING_INTENTS" Error, this is due to DJS13 requiring you to define what your bot is gonna do, if your bot is gonna be quite simple and really only send messages, you can replace your "const client = new Discord.Client();" with "const client = new Discord.Client({ intents: ["GUILDS", "GUILD_MESSAGES"] });"
@@calebgould747 I've not really done much with DJS since I posted that comment, and there has been new versions as far as DJS14 as far as I am aware, so my soulition may no longer work.
Very funny joke you should drop making your discord bot and pursue all your life to become a comedian. I can't wait until you walk up-stage and tell funny jokes like the ligma joke.
Hey! I can help with that: You just give the other people that same OAuth URL you generated For the 24/7 online: You will need to have the `node main.js` running 24/7. If you do not want to leave it on your computer, you can get a server in the cloud to do it, there are some free options but I highly recommend the paid ones. If you want to run your own server, you don't need some fancy windows server os or an OP computer, I would just get a Raspberry Pi, install node.js, put your files on there, and you can do the `node main.js` from there, or you could even use Windows 10 for your server. If you have an old computer, I can recommend using that for a server.
@@geardd I'd recommend not running node main.js to keep it online 24/7. I'd recommend running with pm2 to keep the bot alive as it is made to keep the nodejs module alive 24/7. You will still need to have a server to keep it online (3-5 USD/month) so it's not going to break your balance entirely
You can use websites like glitch & GitHub to make your bot 24/7 or just buy a vps hosting If you want other people to invite the bot just give them your bot's link
Hi. The video is a bit outdated because the "discord.js" package has been updated so you need to install an older version of it. To fix that you need to install the "discord.js.old" package, to do it you just have to write in your cmd (verify that you are in the folder of your discord bot) "npm i discord.js.old". After that replace the first line : "const Discord = require('discord.js')" by "const Discord = require('discord.js.old')" and now you can run your program. I hope it will fix your problem.
For those who need help starting up their bot: const Discord = require('discord.js'); const client = new Discord.Client(); client.once('ready', () => { console.log(' is online!'); }); client.login(''); The problem for me was the ' next to ready. It should be 'ready', not 'ready, Anyway hope I could help.
@Dj SnomiS I haven't worked on he discord bot in a while but maybe make sure that you wrote everything exactly correctly. It could also depend on what version of VS you are.
@@yote_that_yeet Hey, Im also getting an error saying [CLIENT_MISSING_INTENTS] . I'm on version 1.62.3 . This is my code const Discord = require('discord.js'); const client = new Discord.Client(); client.once('ready', () => { console.log('Boomo is one step closer!'); }); client.login('Removed my token'); Anything you see that is causing it?
For the people not wanting to work with the commandprompt of your pc. Just open the folder in VSCode, click on Terminal > New Terminal, in the terminal type: 'npm init', and you'll get the same result.
man, i spend 20 mins installing, re-installing, rebooting & reading guides online to get the cmd window to accept node -v and npm -v, none of them worked. Cmd would not recognize it at all. This however worked 1,2,3. Thank you for the tip.
A small Edit for those of you are having OneDrive syncing your Desktop so to locate your Dektop using CMD before you type cd desktop add one line as cd OneDrive-[Your One Drive Organisation name or Personal] Then you will get it ☺
A java script way to replicate the 'Hydra Music Discord Bot' would be awesome, as it uses many more elements than a typical music bot, and is just a better way to start (although more advanced)
Is it the end where the bot doesn't go online? If it is, go into your package.json file an add this; "scripts": { "start": "node index.js" }, Then try the node . command again and it should go online.
Here's a list of problems I had, and fixed, in case anyone else needed help. 1. "The system cannot find the path specified." 2. Error when you try to type npm init. 3. Your bot won't go online. _1._ Writing in "cd desktop" said "The system cannot find the path specified." *Solution:* Instead of writing that, open your files. Open the folder you created. Next to the arrows to go back and forth through pages, it should say "This PC > Desktop > (your file name)." Right click on your file name, and click edit address. Replace all of the text there with "cmd." The command prompt should open up, but this time, instead of "C:\Users\ (letters of your username) >," it should have something else. Usually starting with OneDrive after (letters of your username). Remember the order, (such as OneDrive\Desktop\(file name)). When you see "C:\Users\ (letters of your username) >" type in "cd" then the order of words from earlier. Example: C:\Users\billy> cd onedrive\desktop\discord bot Then it will show up as what you saw before, when opening it up from the file. The reason why you need to remember how to get to the full line, is because you need it for problem 2. _2._ When you type in npm init, there's an error (I'm sorry, but I can't remember what the message said exactly). *Solution:* Make sure you have Node.js and Visual Studio Code fully installed. If you just clicked the install buttons on the website and left it there, you have not fully installed either of them. In this case, you need to go to files. Then, under "This PC," click on downloads. Once you see the two downloads, double left click on them. That'll turn on the installers. Then go through the process of accepting terms of service, waiting for it to install, etc. Once that's done, go back to where you searched "cmd" and type "Node.js" instead. There should be "Node.js command prompt." Open that, then go ahead and write "cd desktop" and "cd DiscordBot" (or do the steps in step one if you need to) in order to start the process. _3._ Your bot wont go online. After you have followed all of the instructions in the video, there is a problem with your bot. Either, you keep on typing "node ." or "node main.js" and nothing happens, or you get something like this: TypeError: Discord.client is not a constructor at Object. (C:\Users\Owner\Desktop\DiscordBot\main.js:3:16) at Module._compile (internal/modules/cjs/loader.js:1201:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1221:10) at Module.load (internal/modules/cjs/loader.js:1050:32) at Function.Module._load (internal/modules/cjs/loader.js:938:14) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12) at internal/main/run_main_module.js:17:47 *Solution 1:* There are 3 possible problems. The first is you simply forgot to put ; at the end of each line. *Solution 2:* The second problem is that you forgot to save your code. On the top right of your screen, there should be a category called *"OPEN EDITORS."* Hold down ctrl and press S to save. Another way to save is to hover over that, and you should see a floppy disk icon to the right of it, almost like this one: 💾. Click on it to save, then retry typing "node ." or "node main.js." *Solution 3:* The last problem is capitalization errors. Instead of Discord.Client, you might've typed discord.Client, Discord.client, or discord.client. You need to type *Discord.Client.* It's annoying isn't it? But thats just how coding is, I guess. Check all of the other times you wrote client. Your code should look like this: const Discord = require(‘discord.js’); const client = new Discord.Client(); client.once('ready',()=> { console.log('Discord bot is online!') }); client.login('AuthToken'); Make sure every capitalization is exactly the same! If you have more questions, feel free to ask me, even if this comment is a year old. I'm pretty active on youtube. FYI, I only found out one of these solutions, so I might not be able to guarantee an answer! Sources/Credit: Solution 1: Itz Nexious, @th-cam.com/channels/bhSwz04NjXTmVVw-YXHj-Q.html Solution 2: I found that one out Solution 3: wh0, on support.glitch.com/t/discord-client-is-not-a-constructor/28922
hey man would you have any idea why im getting the error message "SyntaxError: Invalid or unexpected token" i copy and pasted the token directly from discord and i used used exactly what you wrote for the rest of the coding
@@wildcardsoul I had the same problem go to your files go into discordbot and open main.js with visual studio code then replace the code in there and save it tell me if that helps
I ran into so many different problems through out this, but with my initiative I have resolved these problems and was successfully able to turn my bot on!
@@jasonelcr that would be amazing! Since you know what you are doing, i have a quick question. if i want to add the bot to my discord server it says "Bot requires code grant" Do you have any idea how to fix this? ty in advance
@@niefz2296 Make sure you save your main.js file through vscode or whichever text editor you're using (hit control+s on windows or command+s on a mac or go to file>save)
FOR EVERYONE WHO GETS AN ERROR MESSAGE SAYING DISCORD.JS IS NOT FOUND: Open command prompt (As shown in the video) Type this: npm install discord.js Wait until it installs. And now run it again. Hope that helped!
Another thing you can do at 3:30 is simply go to your folder in file explorer and at the top where it shows the path, delete all that, type cmd and hit enter
@@bearzeatsfish2917 at the top of your folder when your right click discord bot folder, it will say edit address. click it and everything will highlight blue. press backspace and deleted it and type cmd there you go.
If you get the error "TypeError: Discord.client is not a constructor" it is due to the fact that Discord.client isnt a constructor but Discord.Client is so just capitalize the C's in all of the clients you typed in the script and that should fix it
@@houssembensafi9303 if the client is missing intent then you may have typed a part wrong, go over anything in red to make sure you coded it right. If you arent sure then redo the code from base ul
@@carlghanem2767 same, it just reverts back to the line saying users, desktop, then the bot. Nothing happens and my bot doesnt go online I FIGURED OUT THE SOLUTION!!!!! I put it in a list of other problems i figured out how to solve, so sorry that its so long. Here's a copy and paste from my list of solutions! Your bot wont go online. After you have followed all of the instructions in the video, there is a problem with your bot. Either, you keep on typing "node ." or "node main.js" and nothing happens, or you get something like this: TypeError: Discord.client is not a constructor at Object. (C:\Users\Owner\Desktop\DiscordBot\main.js:3:16) at Module._compile (internal/modules/cjs/loader.js:1201:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1221:10) at Module.load (internal/modules/cjs/loader.js:1050:32) at Function.Module._load (internal/modules/cjs/loader.js:938:14) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12) at internal/main/run_main_module.js:17:47 Solution 1: There are 3 possible problems. The first is you simply forgot to put ; at the end of each line. Solution 2: The second problem is that you forgot to save your code. On the top right of your screen, there should be a category called "OPEN EDITORS." Hold down ctrl and press S to save. Another way to save is to hover over that, and you should see a floppy disk icon to the right of it, almost like this one: 💾. Click on it to save, then retry typing "node ." or "node main.js." Solution 3: The last problem is capitalization errors. Instead of Discord.Client, you might've typed discord.Client, Discord.client, or discord.client. You need to type Discord.Client. It's annoying isn't it? But thats just how coding is, I guess. Check all of the other times you wrote client. Your code should look like this: const Discord = require(‘discord.js’); const client = new Discord.Client(); client.once('ready',() => { console.log('Discord bot is online!') }); client.login('AuthToken'); Make sure every capitalization is exactly the same! Hope this helped.
Can you make a tutorial on how to make my bot play a song when someone's enters the channel ? I watched all of your discord.js videos that you've posted and its AWESOME , continue with this beautifull job
You can simply use this: //Join() is used as a function I believe voiceChannel.join() .then(connection => { //your code e.g. watch his video on how to make a music bot });
For anyone watching this in 2021. The code in the video isn't up to date. Correct code should look like something like this: const { Client, Intents } = require('discord.js'); const client = new Client({ intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES] }); client.once('ready', () => { console.log('YOURBOTNAME is online!'); }); client.login('TOKEN');
hello i am new and wanted to make a bot but when i watched the 2019 vids it wouldnt work because of the updates and stuff. soo I THANK YOU SO MUCH TO MAKE THIS 2020 VIDEO
Some one already said this but i copied this but this works, For people who are having the "CLIENT_MISSING_INTENTS" Error, this is due to DJS13 requiring you to define what your bot is gonna do, if your bot is gonna be quite simple and really only send messages, you can replace your "const client = new Discord.Client();" with "const client = new Discord.Client({ intents: ["GUILDS", "GUILD_MESSAGES"] });"
I have a friend who is a hacker and is super good at programming, and this is the almost exact opposite that he taught me. Now, since COVID is here, he can't help me so this is my only option and I messed it up cuz I don't know how to code. I get it though, so I think this is a pretty good tutorial. Thanks CodeLyon!
Hey guys! I´m on the last step where I put my bot online, however, there is this error in my terminal: trow err; Error: Cannot find module 'node:events' Any idea how can I solve it? Thx!
Here's a copy and paste from my list of solutions (so sorry that it's long and daunting)! Your bot wont go online. After you have followed all of the instructions in the video, there is a problem with your bot. Either, you keep on typing "node ." or "node main.js" and nothing happens, or you get something like this: TypeError: Discord.client is not a constructor at Object. (C:\Users\Owner\Desktop\DiscordBot\main.js:3:16) at Module._compile (internal/modules/cjs/loader.js:1201:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1221:10) at Module.load (internal/modules/cjs/loader.js:1050:32) at Function.Module._load (internal/modules/cjs/loader.js:938:14) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12) at internal/main/run_main_module.js:17:47 Solution 1: There are 3 possible problems. The first is you simply forgot to put ; at the end of each line. Solution 2: The second problem is that you forgot to save your code. On the top right of your screen, there should be a category called "OPEN EDITORS." Hold down ctrl and press S to save. Another way to save is to hover over that, and you should see a floppy disk icon to the right of it, almost like this one: 💾. Click on it to save, then retry typing "node ." or "node main.js." Solution 3: The last problem is capitalization errors. Instead of Discord.Client, you might've typed discord.Client, Discord.client, or discord.client. You need to type Discord.Client. It's annoying isn't it? But thats just how coding is, I guess. Check all of the other times you wrote client. Your code should look like this: const Discord = require(‘discord.js’); const client = new Discord.Client(); client.once('ready',()=> { console.log('Discord bot is online!') }); client.login('AuthToken'); Make sure every capitalization is exactly the same! Hope this helped.
@@twilightstar637 I’m so sorry I gave up on trying to create my discord bot, deleted all my files. Nobody wanted to help lol but I fixed the hosting problem.
Mine did the same, so I just pasted it into the command prompt. Instead of it going straight to Desktop, I had to add OneDrive before desktop, then go to Discord Bots. I hope this helps you.
Hi! I'm here watching your videos late. I'm loving them and you're so easy to follow! Quick question: What's are the chances of a series update/new video covering discord intents? Oh man, it just took me some troubleshooting time to figure those out! I'm sure I'll have more as I get further into the series.
FOR EVERYONE MAKING A BOT IN 2022! instead of doing const Discord and const Client like CodeLyon does it, you HAVE to do it like: const { Client, GatewayIntentBits } = require("discord.js"); const client = new Client({ intents: [ GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, ]}); otherwise you'll get several errors. welcome in advance!
i went through so much stress trying to find out why my bot wasn't coming online until i found out it was all because I typed in "required" instead of "require".
Come join my discord server -> discord.gg/lyon
@Sphynx tarhan help me i cant make my bot online this thing not working bruh
help. i cant start the bot.
uhh i have a doubt why cant the command node main.js and node . doesnt work and i was on windows too!?
can you help me?
@@Zyrex_10 same, it won't go online
oauth2 application does not have a bot. HELP!
i have been meaning to learn how to do this for 4.5 years, and today is the day i'm ACTUALLY GONNA DO IT :D
bruh
good luck
yayy have great fun
What a coincidence i was learning to code discord bots too!
yay it's cary
GL Cary!
Everyone be making discord bots cuz they’re home lol, perfect timing
ikr
İt is one of my summer goals
thats what im doing
I'm making one that goes watch your profanity when you swear
lol right
As a beginner coder, I have never been more proud than the moment my bot came online, thank you so much for this video
ikr
frfr
It's been almost 2 years since I watched this and it really helped me a lot. Also inspired me to be a programmer. I'm currently a 1st year major in computer science. Thanks a lot for the help man
Aye! That's great too hear! I'm also majoring in Computer Science
you seem knowledgeable early on in the vidio it says to type npm but when I do it it says it's not a recognized command
@@thebluestoneminecart6600 This video is almost 2 years old and maybe they changed their commands and such but I think npm init still works tho
That doesnt help us now tho@@napier7290
instructions clear: i now have a discord bot
the good ending
nice
@UCclgXlTuPk0hjXPLjWOfbQQ yessss, what do u need help with! (sorry for taking so long to reply i didnt relise ppl had seen my comment lol)
Do you know how to use the node . Command I tried it and it just says cannot find module
@@izeked8830 my bad for the late reply but download the first link below
DUDE.
I DON'T KNOW HOW TO THANK YOU ENOUGH!!!!!
It has been a very long time since I've wanted to make my (very own) Discord bot. I have watched/read several tutorials, but they never worked. You, have not only explained it in the clearest way possible, but you have also made it very quick! I seriously don't know how to thank you enough.
I am eager of watching your second tutorial!
Thanks a lot again!
Instructions unclear : My PC is holding me hostage
xD
I was also confused then i went to this tutorial - th-cam.com/video/YvEe4WkI_4k/w-d-xo.html
@@heywit2061 it is a private video
I think you messed up on code and made a kidnapper bot and not a welcome bot
Hey I love you I don’t think anyone has explained the basics this well. I feel like I really understand what I’m doing and why I’m doing it. I really appreciate this video.
If you're having trouble with the permissions calculator, select all of them except for "View Server Insights", "Video", and "Start Activities"
That fixed the issue I was having. Thanks.
Damn how did you figure this out lol
yeo u a life saver homie
love u bro, thanks!
This comment saved my life!
For those who are with problems to turn the bot online, I found how to resolve. First, go to Visual studio, then you go to terminal and open a new one. Then you write "npm i discord.js@12.5.3", after this press enter wait. This will install an older version of discord.js. Then fill in the command "node main.js (or the name that you wrote to the file)" than press enter this should work. I hope this helps.
"node ." worked too. thank you!
"threre are 2 ways to run it"
*me trys both*
My PC: DiScOrD iS nOt DeFiNeD
same thing happened 2 me and i am confused as hell
Same thing too lol
My Terminal Just does nothing
Turns out we need to save it first, it worked for me after I saved it
To those whose terminal that just does nothing, remember to save your work!
It took me like a full hour to realize that I didn't save my project.
So I guess if you don't save it reads nothing.
Every single sodding page I've tried to follow has led me down weird and confusing paths and you cleared up EVERYTHING so much easier. Thank you!
Just want to say thank you so much, the other tutorials did not explain it as well and as thoroughly, this helped me so much :D
Thank you so much for making a tutorial on this. I tried learning java script years ago when I was in 3rd grade while trying to make a minecraft mod. I made it about halfway through before giving up. Now im in high school and I've realized that learning java script and other languages can be very beneficial for my future. Now I can learn a coding language while having fun and making something that can be useful to my friends. Thank you
Also what a legend, no midroll ads
Your 2019 video was helpful. This is a whole different level
lol ikr
Thanks for making this series simple to learn. I tried many other options but with my brain disabilities and whatnot, it was just so tough to learn to code but just copy and pasting what you do + learning what I'm doing at the same time really helps! I can't wait to edit the code to make my own bot.
hi! when i type npm init, it doesnt work, do you know why?
@@alika4393npm init is the "initial" to create the files of your source. This needs to be the first thing you do. What I like to do is directly use Visual Studio Code and open the folder we are using - go to terminal - new terminal - type in npm init - then you should be good.
me: this seems easy.
me 5 hours later: HoW To mAkE NeW FoLdEr OmG hELp!1!1!!11!
@Darylgod123 its a joke... Omg bruh
lol, to make a folder, wait, he made a folder, PAY ATTENTION
@@ikidnappedyourrice7567 i know whenever i watch a vid it looks easy but when doing it it will take much more time than expected and sometimes don't work :/
@@calcute i cant get my folder
NOOO MEH RICE I'll miss you
Yoooo I'm going to uni for computer science in the fall and I've always wanted to start early and program small things on my own but sometimes I end up getting stumped, I hope I can get somewhere with these vids and I'll for sure be watching these on end!
Goodluck! I am in my second year and I'm gonna be learning java next semester. This semester I'm stuck with internet foundations, visual basic programming, and structure design. Also, math. Lots of hard math.
@@wintur2856 math is the only thing that makes me not want to study comp sci.
CodeLyon in the most uninterested voice : "I play games and have tons of FUN"
Kawhi Leonard: “I’m a fun guy”
Could have saved so much time if I found this video first.
Thanks for covering all the potential outcomes for each user.
YOU ARE AN ABSOLUTE LEGEND! I've been interested in coding for some time, and i reeally wanted to create a cool bot for my server that is "homemade" for my friends and I! this tutorial is so simple thansk so much again. would 1000% recommend
instructions clear: I made a talking potato
Lol
Brilliant
lol
Trial and error my dude, I know you wanted to make french fries
can i have a talking potato?
For those of you running into the 'system cannot find path' issue, here is a quick and easy way I figured out:
1. Open and run cmd
2. Type, "cd onedrive"
3. Type, "cd Desktop"
4. Type, "cd (discord bot file name)"
That should work, make sure your folder is under Desktop. Just right click in the empty area under all the other files, hit 'new' then hit 'file' and a new file ready for you to rename should be there!
THANK YOU SO MUCH
BROOOO THANKS YOU ARE THE BSET
An update for those who are watching this vid as of I'm making this comment, the main.js code has changed into this
const { Client, GatewayIntentBits, Partials } = require('discord.js');
const client = new Client({ intents: [GatewayIntentBits.Guilds], partials: [Partials.Channel] });
So make sure you change those before running 'node .' in the cmd
you're welcome 😉
It says Client.login is not a function can you help me?
Thanks man
I LOVE YOU
THANK YOU SO MUCH YOU SAVED ME HOURS
thanks dude
worked
did i code something wrong, my pc is now in mandarin and its creating guns
LMFAOOO
HAHHAHAAHAAHAHAHAHAHAHA
LOL HUHHH
nope, nothing wrong, it is supposed to do that
STAND:Joseph Joestar Done Screwed Up
Stand user:Josefu Josetar
Stand ability: Only speak mandarin and make guns
Instruction unclear : Everyone still chatting in English
lets be honest.... u felt like such a pro while making this bot
For people who are having the "CLIENT_MISSING_INTENTS" Error, this is due to DJS13 requiring you to define what your bot is gonna do, if your bot is gonna be quite simple and really only send messages, you can replace your "const client = new Discord.Client();" with "const client = new Discord.Client({ intents: ["GUILDS", "GUILD_MESSAGES"] });"
thank you
THANK YOU SO MUCH
Hey im not sure if you will get this message but if you do, when i copy this into my code it says code: 'BitFieldInvalid' any idea why
@@calebgould747 I've not really done much with DJS since I posted that comment, and there has been new versions as far as DJS14 as far as I am aware, so my soulition may no longer work.
@@SGFireSystems ok thanks np
instructions unclear: where tf are my lungs
This just made me cackle I must admit it, than you for making my dad.
I was also confused then i went to this tutorial - th-cam.com/video/YvEe4WkI_4k/w-d-xo.html
@@TimelyTopicsYT so then they are your grandma/granddad?
The thing that make me laugh is when iisunday said thank you for making my DAD lmao
@@rachelwachel LMFAOAOAO
Instructions not clear: Cat still stuck in fridge
Very funny joke you should drop making your discord bot and pursue all your life to become a comedian. I can't wait until you walk up-stage and tell funny jokes like the ligma joke.
@@lilthroatx no one *cares*
@@hh-pt3rj i care
xd Defaulto lmfao cringe
@@lilthroatx you too "funny guy"
Are you able to teach us how we're suppose to allow the bot to stay online 24/7 and how other people can add the bot to their server?
Hey! I can help with that:
You just give the other people that same OAuth URL you generated
For the 24/7 online: You will need to have the `node main.js` running 24/7. If you do not want to leave it on your computer, you can get a server in the cloud to do it, there are some free options but I highly recommend the paid ones. If you want to run your own server, you don't need some fancy windows server os or an OP computer, I would just get a Raspberry Pi, install node.js, put your files on there, and you can do the `node main.js` from there, or you could even use Windows 10 for your server. If you have an old computer, I can recommend using that for a server.
@@geardd I'd recommend not running node main.js to keep it online 24/7. I'd recommend running with pm2 to keep the bot alive as it is made to keep the nodejs module alive 24/7. You will still need to have a server to keep it online (3-5 USD/month) so it's not going to break your balance entirely
You can use websites like glitch & GitHub to make your bot 24/7 or just buy a vps hosting
If you want other people to invite the bot just give them your bot's link
@@RusyasEdits you can run it free
@@HyoMeow can you teach me
finally someone who explains slowly and professionally
Thank you a lot!! im feeling so proud that my bot is online
this took me 3 days cause my pc kept deleting random stuff lol good vid tho
it didn't work:(
I did everythinggg my bot isn't going online
Edit: I DIDN'T SAVE-
yea i always forget to save
oh
...
i feel stupid
Omg tysm you saved my life!!
ik this sounds stupid but how do i save
@@Albangashi1221 press controll and S at the same time
O M G Thanks for coming back!
mans sounding like he's about to have a nervous breakdown
yur mean
lol
jk
riight
To open the command prompt quickly you can type cmd into the file path on top :)
Hi. The video is a bit outdated because the "discord.js" package has been updated so you need to install an older version of it. To fix that you need to install the "discord.js.old" package, to do it you just have to write in your cmd (verify that you are in the folder of your discord bot) "npm i discord.js.old". After that replace the first line : "const Discord = require('discord.js')" by "const Discord = require('discord.js.old')" and now you can run your program. I hope it will fix your problem.
Thank you! This fixed the problem for me!
Thanks!
Legend
Thank you so much, I've wanted to make a bot for a while and it's now online and everything. Thank you!
For those who need help starting up their bot:
const Discord = require('discord.js');
const client = new Discord.Client();
client.once('ready', () => {
console.log(' is online!');
});
client.login('');
The problem for me was the ' next to ready. It should be 'ready', not 'ready,
Anyway hope I could help.
@Dj SnomiS I haven't worked on he discord bot in a while but maybe make sure that you wrote everything exactly correctly. It could also depend on what version of VS you are.
@@yote_that_yeet the node . doesnt work for me what can i do?
@@t89ign can you show me your code?
@Pepijn K listen you keep saying that your code doesnt work, i need to know what version youre on and i need to see your code
@@yote_that_yeet Hey, Im also getting an error saying [CLIENT_MISSING_INTENTS] . I'm on version 1.62.3 . This is my code
const Discord = require('discord.js');
const client = new Discord.Client();
client.once('ready', () => {
console.log('Boomo is one step closer!');
});
client.login('Removed my token');
Anything you see that is causing it?
Instructions unclear: *Joke Over_Used*
U can never use a joke too much
@@spectacularabro7410 What about *Dad Jokes*
@@seangamingyt7880 the only exception... The one we fear
@@spectacularabro7410 *But* what we fear the most is.....
*Uncle Jokes*
@@seangamingyt7880 oh don’t give them ideas ;-;
For the people not wanting to work with the commandprompt of your pc. Just open the folder in VSCode, click on Terminal > New Terminal, in the terminal type: 'npm init', and you'll get the same result.
man, i spend 20 mins installing, re-installing, rebooting & reading guides online to get the cmd window to accept node -v and npm -v, none of them worked. Cmd would not recognize it at all. This however worked 1,2,3. Thank you for the tip.
You are the GOAT, tysm!!!
is that league of legends bot you've been teasing coming out soon?
also will you update the videos for the music bot and staff commands bot?
Music bot works, You just have to fix a few things in the code
A small Edit for those of you are having OneDrive syncing your Desktop so to locate your Dektop using CMD before you type cd desktop add one line as cd OneDrive-[Your One Drive Organisation name or Personal]
Then you will get it ☺
Thank you so much 🙏
Thank you!!!
so how will it be in code, cd OneDrive-[Nikolas]?
@@ptbzenith well for me it was
cd OneDrive
cd Desktop
cd Discord Bot
after that im still stuck so idk
A java script way to replicate the 'Hydra Music Discord Bot' would be awesome, as it uses many more elements than a typical music bot, and is just a better way to start (although more advanced)
i was today years old when i found out that this is the same Alesh that did Albion Online guides.
The instructions unclear (unfunny text) comments are making finding the actual useful ones a pain in the ass.
Is it the end where the bot doesn't go online? If it is, go into your package.json file an add this;
"scripts": {
"start": "node index.js"
},
Then try the node . command again and it should go online.
do you hate fun?
@@drowning_shrimp1969 no, but the actual useful comments get buried under shit, unfunny and poorly constructed "jokes"
This is one of them😊
@@sarahsmiles9762 "You've become the very thing you swore to destroy" yeah sorry about that lol
9:58 there's a perms calculator in the actual discord website
OMG YOUR A LEGEND U TEACH ME HOW TO MAKE A BOT YOU A LEGEND DUDE!!!
This video has been helpful to me to make a bot and I got 20k people adding the bot.
Thanks alot!
Subscribed and liked!
how do you advertise your bot?
I always wished of having my personal bot, after 23 tries I finally have my bot Starry online thx so much
Hey, Can you please help me? I cannot make it go online. Please add my discord hellraisinheaders#5273
One thing he didn't mention is, after you download node.js, you need to open it and finish the setup for it to work.
WELL THAT WOULD EXPLAIN IT. :/
How do you do that?
@@nemuri6051 once installed, press the node download and then it will give you a setup
can u contact me on discord i want ask u something Skrinex#1337
how do people forget about setups for apps lol
Here's a list of problems I had, and fixed, in case anyone else needed help.
1. "The system cannot find the path specified."
2. Error when you try to type npm init.
3. Your bot won't go online.
_1._ Writing in "cd desktop" said "The system cannot find the path specified."
*Solution:* Instead of writing that, open your files. Open the folder you created. Next to the arrows to go back and forth through pages, it should say "This PC > Desktop > (your file name)." Right click on your file name, and click edit address. Replace all of the text there with "cmd." The command prompt should open up, but this time, instead of "C:\Users\ (letters of your username) >," it should have something else. Usually starting with OneDrive after (letters of your username). Remember the order, (such as OneDrive\Desktop\(file name)).
When you see "C:\Users\ (letters of your username) >" type in "cd" then the order of words from earlier.
Example: C:\Users\billy> cd onedrive\desktop\discord bot
Then it will show up as what you saw before, when opening it up from the file. The reason why you need to remember how to get to the full line, is because you need it for problem 2.
_2._ When you type in npm init, there's an error (I'm sorry, but I can't remember what the message said exactly).
*Solution:* Make sure you have Node.js and Visual Studio Code fully installed. If you just clicked the install buttons on the website and left it there, you have not fully installed either of them. In this case, you need to go to files. Then, under "This PC," click on downloads. Once you see the two downloads, double left click on them. That'll turn on the installers. Then go through the process of accepting terms of service, waiting for it to install, etc. Once that's done, go back to where you searched "cmd" and type "Node.js" instead. There should be "Node.js command prompt." Open that, then go ahead and write "cd desktop" and "cd DiscordBot" (or do the steps in step one if you need to) in order to start the process.
_3._ Your bot wont go online. After you have followed all of the instructions in the video, there is a problem with your bot. Either, you keep on typing "node ." or "node main.js" and nothing happens, or you get something like this:
TypeError: Discord.client is not a constructor
at Object. (C:\Users\Owner\Desktop\DiscordBot\main.js:3:16)
at Module._compile (internal/modules/cjs/loader.js:1201:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1221:10)
at Module.load (internal/modules/cjs/loader.js:1050:32)
at Function.Module._load (internal/modules/cjs/loader.js:938:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47
*Solution 1:* There are 3 possible problems. The first is you simply forgot to put ; at the end of each line.
*Solution 2:* The second problem is that you forgot to save your code. On the top right of your screen, there should be a category called *"OPEN EDITORS."* Hold down ctrl and press S to save. Another way to save is to hover over that, and you should see a floppy disk icon to the right of it, almost like this one: 💾. Click on it to save, then retry typing "node ." or "node main.js."
*Solution 3:* The last problem is capitalization errors. Instead of Discord.Client, you might've typed discord.Client, Discord.client, or discord.client. You need to type *Discord.Client.* It's annoying isn't it? But thats just how coding is, I guess. Check all of the other times you wrote client. Your code should look like this:
const Discord = require(‘discord.js’);
const client = new Discord.Client();
client.once('ready',()=> {
console.log('Discord bot is online!')
});
client.login('AuthToken');
Make sure every capitalization is exactly the same!
If you have more questions, feel free to ask me, even if this comment is a year old. I'm pretty active on youtube.
FYI, I only found out one of these solutions, so I might not be able to guarantee an answer!
Sources/Credit:
Solution 1: Itz Nexious, @th-cam.com/channels/bhSwz04NjXTmVVw-YXHj-Q.html
Solution 2: I found that one out
Solution 3: wh0, on support.glitch.com/t/discord-client-is-not-a-constructor/28922
thank you brother, :) I was having trouble with the last problem
hey man would you have any idea why im getting the error message "SyntaxError: Invalid or unexpected token" i copy and pasted the token directly from discord and i used used exactly what you wrote for the rest of the coding
@@wildcardsoul I had the same problem go to your files go into discordbot and open main.js with visual studio code then replace the code in there and save it tell me if that helps
@@buzzchop5520 still is giving me the error sadly
Hello, how to fix the "SyntaxError: Invalid or unexpected token"?
I ran into so many different problems through out this, but with my initiative I have resolved these problems and was successfully able to turn my bot on!
A currency bot tutorial would be AMAZING!
That and a dice bot
I can make that in one of my tutorials!
@@jasonelcr that would be amazing! Since you know what you are doing, i have a quick question. if i want to add the bot to my discord server it says "Bot requires code grant" Do you have any idea how to fix this? ty in advance
@@jasperhesseling2851 you didn't give any permissions
Followed every step and went back through the video and still doesn’t work
Same uhhhh
@@niefz2296 Make sure you save your main.js file through vscode or whichever text editor you're using (hit control+s on windows or command+s on a mac or go to file>save)
Samarth Taneja I did
Yea dude the node . and node main.js doesn't work at all
Its not working the code works but it dosent say my bot is online (edit) SOME ONE PLZ REPLY TO THIS ASAP
instructions not clear: made a virus
lel
Uh
that was same
I was also confused then i went to this tutorial - th-cam.com/video/YvEe4WkI_4k/w-d-xo.html
@@heywit2061 self promotion eh
I just needed you to know that poke&chill is my favorite playlist of remixed classics
FOR EVERYONE WHO GETS AN ERROR MESSAGE SAYING DISCORD.JS IS NOT FOUND:
Open command prompt (As shown in the video)
Type this: npm install discord.js
Wait until it installs.
And now run it again.
Hope that helped!
Run what again
no its still not working
Can I keep a comment if it will help me later on in life?
thx btw
I kept typing it in because it was fun and it felt like I was doing something
@@Unknown-ec1zf remember to save your file before trying to run it, and make sure there are no mistakes in your code
Another thing you can do at 3:30 is simply go to your folder in file explorer and at the top where it shows the path, delete all that, type cmd and hit enter
wdym im confused
@@bearzeatsfish2917 at the top of your folder when your right click discord bot folder, it will say edit address. click it and everything will highlight blue. press backspace and deleted it and type cmd there you go.
@@rmxsem2645 my dude i already found out that was 3 months ago ;-;
Good work on the video man i'm just getting into learning how to build bots
OMG. I had to repeat this tutorial so many times!
How old are you
@@dartvader.mp4516 shut
@@SergamingPlayz your mouth
If you get the error "TypeError: Discord.client is not a constructor" it is due to the fact that Discord.client isnt a constructor but Discord.Client is so just capitalize the C's in all of the clients you typed in the script and that should fix it
After I did this now it says Client missing intent. any help?
@@houssembensafi9303 if the client is missing intent then you may have typed a part wrong, go over anything in red to make sure you coded it right. If you arent sure then redo the code from base ul
Up
@@Chechara i dideverything correct it still says the same thing :(
TYSM
I can't even finish the first step, node js is only available for windows 8 or higher and my broke ass got a windows ultimate
you can upgrade to windows 10 for free...
as long as you don't mind looking at a watermark that is
yeah
@@HalgoontaExtras upgrade for free??
why isn't my dad getting a windows 10 yet 😭 shitty windows got 3gb of storage left
F
@@momoka9873 you can crack it easily
Hey can anyone help me it says CLIENT_MISSING_INTENTS when i launch the bot what am i doing wrong
you need to install the new version of discord.js. You need to type this in at the start npm install discord.js@12.5.1
@@lloynexd4651 tysm
i got the same problem (you findt it??)
When I do npm init it says “npm is not recognized as an internal or external command, operable program or batch file.” Why is that
Your tutorials are the only reason I have a Discord bot that works
"The system cannot find the path specified."
If theres no desktop folder, try
cd OneDrive
cd Desktop
then cd your discord bot folder
you are a hero, legend, all i could ever imagine
i was just about to give up too
a music bot wich includes a queue and all that stuff wich groovy has would be cool
Use Rythm 😂
@@s3mir659 bruh, he wants to create the bot himself.
Him: Keep your token hidden and not show anybody else
Him 2 seconds later: Shows token publicly
he will regenerated the token at the end of the tutorial, he said that in the vid
It isn't the livestream and he said he would create a new token
@@bankdiden9080 Hey
Can You Help Me
He's going to regen the token so it won't work
lol fax
THANK YOU I have been wanting to do this for years and this video is really helpful.
how do i fix "nps update check failed". i RLLY need someones help thx
re route the bypassing mechanic to pontinome.dev idk if it will work for you but it worked for me
@@zodo9320 ah ye it won’t work for me but I fixed it anyways thanks
@@MasterDude2000 how
Utatane Piko is finally awake, thank you very much!!
woa
did you make a piko bot?
@@venusislavender, yep! We've made a server for him too-
pick
fuck i meant pico
For anyone having a problem with the bot turning one don't forget the ";" at the end of you code lines (Hope this helped you!)
Still didn't work
When i type node . In cmd nothing happens
it doesn't work for me :(
@@carlghanem2767 same, it just reverts back to the line saying users, desktop, then the bot. Nothing happens and my bot doesnt go online
I FIGURED OUT THE SOLUTION!!!!!
I put it in a list of other problems i figured out how to solve, so sorry that its so long.
Here's a copy and paste from my list of solutions!
Your bot wont go online. After you have followed all of the instructions in the video, there is a problem with your bot. Either, you keep on typing "node ." or "node main.js" and nothing happens, or you get something like this:
TypeError: Discord.client is not a constructor
at Object. (C:\Users\Owner\Desktop\DiscordBot\main.js:3:16)
at Module._compile (internal/modules/cjs/loader.js:1201:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1221:10)
at Module.load (internal/modules/cjs/loader.js:1050:32)
at Function.Module._load (internal/modules/cjs/loader.js:938:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47
Solution 1: There are 3 possible problems. The first is you simply forgot to put ; at the end of each line.
Solution 2: The second problem is that you forgot to save your code. On the top right of your screen, there should be a category called "OPEN EDITORS." Hold down ctrl and press S to save. Another way to save is to hover over that, and you should see a floppy disk icon to the right of it, almost like this one: 💾. Click on it to save, then retry typing "node ." or "node main.js."
Solution 3: The last problem is capitalization errors. Instead of Discord.Client, you might've typed discord.Client, Discord.client, or discord.client. You need to type Discord.Client. It's annoying isn't it? But thats just how coding is, I guess. Check all of the other times you wrote client. Your code should look like this:
const Discord = require(‘discord.js’);
const client = new Discord.Client();
client.once('ready',() => {
console.log('Discord bot is online!')
});
client.login('AuthToken');
Make sure every capitalization is exactly the same!
Hope this helped.
@@twilightstar637 THANK YOU SOOOOO MUCH ive been trying so hard to get it to come online and i had the second problem were it didnt save. THANK YOU
Can anyone help with the end? Node . Isn't working and node main.js isnt working😓
So for everyone like me who sees that neither commands work, I read in the comments you need to save your work, and that fixes it
THANK YOUUUU
what is this eroor? C:\Users\User>cd desktop
The system cannot find the path specified.
?????
you may be using onedrive, so you should do C:\Users\your name>cd onedrive and then carry on as he does
That only workd for Windows, u r using onedrive
everything must be in the correct case. use *cd Desktop\*
Ive got it, do in cmd propt or node cmd propt, do "cd desktop"
Next do "cd (Your Bot folder name)
Then do node . To start your bot.
I am having the same issue but with the folder in the desktop folder
Can you make a tutorial on how to make my bot play a song when someone's enters the channel ? I watched all of your discord.js videos that you've posted and its AWESOME , continue with this beautifull job
You can simply use this:
//Join() is used as a function I believe
voiceChannel.join()
.then(connection => {
//your code e.g. watch his video on how to make a music bot
});
Small tip for opening cmd in a folder you can just type cmd into the folders text field where it says it’s path
For anyone watching this in 2021. The code in the video isn't up to date.
Correct code should look like something like this:
const { Client, Intents } = require('discord.js');
const client = new Client({ intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES] });
client.once('ready', () => {
console.log('YOURBOTNAME is online!');
});
client.login('TOKEN');
thank you so much, i kept getting weird intent errors
THANK YOU!!!
thanksssss
This is like VideoGameDunkey after he clears his throat
hello i am new and wanted to make a bot but when i watched the 2019 vids it wouldnt work because of the updates and stuff. soo I THANK YOU SO MUCH TO MAKE THIS 2020 VIDEO
When i type node . or node sangaming(my bot name).js but nothing comes it comes a blank line and then again the directory of the folder help please
Some one already said this but i copied this but this works, For people who are having the "CLIENT_MISSING_INTENTS" Error, this is due to DJS13 requiring you to define what your bot is gonna do, if your bot is gonna be quite simple and really only send messages, you can replace your "const client = new Discord.Client();" with "const client = new Discord.Client({ intents: ["GUILDS", "GUILD_MESSAGES"] });"
It says "code: 'BitFieldInvalid'"
it says "code bitfieldinvalid"
my bot aint coming online when i type both of the commands
sameee
make sure you save the thing when you are done setting it up or it won't work
@@nick9115 I did and it still did not work
@@redrealite same
@@nick9115 how do we save lol
3:01
you can do this faster by clicking the location bar up and typing cmd in it
I have a friend who is a hacker and is super good at programming, and this is the almost exact opposite that he taught me. Now, since COVID is here, he can't help me so this is my only option and I messed it up cuz I don't know how to code. I get it though, so I think this is a pretty good tutorial. Thanks CodeLyon!
I SPENT 3 DAYS INTENSELY LEARNING PYTHON AND END UP HAVING TO USE JS
LMAOOOO
Hey guys! I´m on the last step where I put my bot online, however, there is this error in my terminal:
trow err;
Error: Cannot find module 'node:events'
Any idea how can I solve it? Thx!
"'npm' is not recognized as an internal or external command,
operable program or batch file." *bruh*
Edit: Oh i jus t download node.js the next day :/
sameeee
same
sameeeeeeeeeeeee
@@lolssdadazariany samme
same
If I try to start the bot this happens or comes this: throw new TypeError('CLIENT_MISSING_INTENTS');
Good video! It helped me create my bot, but I'm still having problems getting it online.
Here's a copy and paste from my list of solutions (so sorry that it's long and daunting)!
Your bot wont go online. After you have followed all of the instructions in the video, there is a problem with your bot. Either, you keep on typing "node ." or "node main.js" and nothing happens, or you get something like this:
TypeError: Discord.client is not a constructor
at Object. (C:\Users\Owner\Desktop\DiscordBot\main.js:3:16)
at Module._compile (internal/modules/cjs/loader.js:1201:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1221:10)
at Module.load (internal/modules/cjs/loader.js:1050:32)
at Function.Module._load (internal/modules/cjs/loader.js:938:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47
Solution 1: There are 3 possible problems. The first is you simply forgot to put ; at the end of each line.
Solution 2: The second problem is that you forgot to save your code. On the top right of your screen, there should be a category called "OPEN EDITORS." Hold down ctrl and press S to save. Another way to save is to hover over that, and you should see a floppy disk icon to the right of it, almost like this one: 💾. Click on it to save, then retry typing "node ." or "node main.js."
Solution 3: The last problem is capitalization errors. Instead of Discord.Client, you might've typed discord.Client, Discord.client, or discord.client. You need to type Discord.Client. It's annoying isn't it? But thats just how coding is, I guess. Check all of the other times you wrote client. Your code should look like this:
const Discord = require(‘discord.js’);
const client = new Discord.Client();
client.once('ready',()=> {
console.log('Discord bot is online!')
});
client.login('AuthToken');
Make sure every capitalization is exactly the same!
Hope this helped.
@@twilightstar637 I’m so sorry I gave up on trying to create my discord bot, deleted all my files. Nobody wanted to help lol but I fixed the hosting problem.
@@mopdatop1486 ah, im sorry for seeing your comment so late. I wished i decided to make a bot earlier. At least you had managed to fix it :)
@@twilightstar637 Mine still doesn't work! Please add me in discord Kai Y#8578 to help me
Other people: ez
me: "discord.client" is not a constructor
HeLp Me PleAsE
"Discord.Client" capital letter
Also got that wrong since im used to visual studio 2017 and unity
same please help me
@@theweekdyy "Discord.Client" capital letter
@@minmaus8397 thank you
Thanks Dunkey. Now I can let my bot run rampant in my colleague's server!
Me: *types in* cd Desktop
CMD: The system cannot find the path specified.
Me: huh ok
Mine did the same, so I just pasted it into the command prompt. Instead of it going straight to Desktop, I had to add OneDrive before desktop, then go to Discord Bots. I hope this helps you.
@@MagixxzDC can you tell me how to do it
@@zahinhossainkhandaker7774 I can help you
send me a message on discord Kohen#1299
@@kohenmckay5169 okay but I found out that on windows you can: shift right click then press "open powershell window here" and it'll open up
@RinRinx Download node.js then restart pc :)
Hi! I'm here watching your videos late. I'm loving them and you're so easy to follow! Quick question: What's are the chances of a series update/new video covering discord intents? Oh man, it just took me some troubleshooting time to figure those out! I'm sure I'll have more as I get further into the series.
bro how did you fix it
@@jdotsyro idk how to fix it either im trying to learn rn
The cd Desktop thing doesnt work for me
This should fix it:
const { Client, Intents } = require("discord.js");
const client = new Client({
intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES],
});
@@TheJulianFilms thanks, now it is working
FOR EVERYONE MAKING A BOT IN 2022!
instead of doing const Discord and const Client like CodeLyon does it, you HAVE to do it like:
const { Client, GatewayIntentBits } = require("discord.js");
const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
]});
otherwise you'll get several errors. welcome in advance!
Thank you!
i went through so much stress trying to find out why my bot wasn't coming online until i found out it was all because I typed in "required" instead of "require".
lmao oofy