I made a Discord Bot that says βChoo Chooβ
Learn to create a Discord bot using in with JavaScript in . This video walks through setting up a node project, creating a Discord application, and writing code for authentication, slash commands, and bot interaction. Code:
π Watch this video ad-free on Nebula
π₯ Previous:
References:
π€ Discord Developer Portal:
π Discord API Documentation:
π¨ :
π Guide:
πΎ Discord Gateway Intents:
Timestamps:
0:00 Introduction
3:39 Setting up the project
5:50 Creating the Discord application
6:24 Inviting your Discord bot
10:11 Enabling developer mode on Discord
10:33 Setting up the .env file
12:47 Code! Getting the bot to log into Discord
18:16 Creating a slash command
24:00 Deploying the slash command
25:53 Listening for the command interaction and executing the command
30:08 How Discord bots communicate with Discord
32:00 documentation
Corrections:
15:45 Intents describe what events your bot will receive and what it has access to. The guilds intent is required so can internally populate itβs cache to limit itβs API calls to Discord.
23:49 Using ./ means the import will be relative to the file that the import is made in. Without it the import would be absolute meaning it would be from the root of your project
Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound
π Website:
πΎ Share Your Creation!
π© Suggest Topics:
π‘ GitHub:
π¬ Discord:
π Membership:
π Store:
ποΈ Twitter:
πΈ Instagram:
π₯ Coding Challenges:
π₯ Intro to Programming:
π :
π Web Editor:
π Processing:
π Code of Conduct:
This description was auto-generated. If you see a problem, please open an issue:
#discordbots #javascript #nodejs #discordjs