Getting Started | Discord.js v13 tutorials

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello everybody welcome back to another video today and in this video since discord.js version 13 came out not too long ago we'll make a video on that so as always first thing you want to do is you want to go to node.js i want to come to this link alvin in the description and for version 13 you have to have this the latest features because that is how it runs and then you also want to download vsc and that is visual studio code so i have this in the description too so the first thing you want to do is right here on your desktop top you want to right click make a new folder and name it whatever you want so this will just be named tutorial we'll replace the old tutorial or rename it to b12 and then i will just make a new folder named v13 for this tutorial so now that you've got your folder made you want to come down here to your search word type in command prompt then in here you just want to do and you want to do init no sorry sorry about that you want to do cd desk top and then cd your folder name now since you're here what you want to do is you want to do npm in it then i'll pop up the command so the package name is whatever your folder's name if you want to change it you can type it there version is fine description you can put description if you want entry point you can either keep it index.js or whatever else you want test commands don't need that we can skip over those author you can put your name in there or whatever you want it doesn't matter license doesn't matter and if this is all good you just type in yes and then you're good and you can close out a command prompt now that you got that done you want to open up visual studio code and in here what you want to do you want to press file open folder then you just want to go to your new four now that you're in here you can close out that in here this is telling you what folder you need to make so you want to do new filed and you want to name it the main name so it'd be right under the description mine is index.js so we'll do index.js now after that what you want to do is you want to open up terminal new terminal and you want to do npm i discord now that you got that downloading i'm going to come back over here i'm going to make a new folder named config.json now that you've got that you want to put your brackets and enter now here you want to put your token in double quotation marks then you want to do a colon then you want to do the quotation marks again now since we forgot to make a robot you want to come into your browser and you want to go to discord developer portal come into here and since you're in here you want to go to your applications new application name it whatever you want press create now that you're in here you want to go to box and this is making your bots now since you're in here you're all good one go to oauth wanna come down here press bots come down here give it administrator or whatever perms you want now you can just add it to your server so let me quickly add it and i'll be right back okay now that i invited it to my server as you can see it joined my server when i go back you want to press bot and you want to copy your token now you never want to share your token because that's what makes it where you can log into your bot now since this is just the test spot we'll do put in here it doesn't matter now since you got that you can save your config.json and go back to your index.js in here what you want to do is you want to import discord so you want to do const discord equals require where you want to do the parentheses the single quotations discord.js now that you have that in there you want to do const client equals new discord dot plant now you want to do your quotation marks then your brackets and enter now since discord did a new thing you now have to do intense so if you just want to do intense then you want to do the colon then you want to do the breath seeing straight brackets now in here since you have all these options you just do i'll show you all the options you want to do discord or dot flags sorry not flags you want to do discord dot inter intents dot flags dots now these are all your options now it's bad practice to do every single one of these so the main ones what we need right now is we need to get guilds do comma enter do discord.intents dot flags dot and you want to do guild messages that's all you need right now now that you got that what you want to do is you want to do client dot on then you want to do your parentheses then you want to do the single quotation put ready then you want to do comma then parentheses equal sign and brackets then you just want to do console dot log then parentheses angle quotation then you can just say the plot is ready or whatever you want now this is just basically saying yep i am online i'm ready to be used now that we got that up here we quickly want to do const config equals required now you want to go back directly to your config.json like this now you just want to do client dot login quotation marks no parentheses and then you want to do config dot token now this is going back to your config.json and getting your token now we can save it we can clear a terminal make nice read to node space dot now that saying the bot is ready we can come here and the bot is online so this is the end of the uh tutorial number one i hope you guys enjoyed be sure to like the video to see more of these and i'll see you guys next time bye
Info
Channel: CodeViper
Views: 101
Rating: undefined out of 5
Keywords:
Id: X2Ch8FanTac
Channel Id: undefined
Length: 7min 59sec (479 seconds)
Published: Sun Sep 05 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.