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
1 view
0
0
2 weeks ago 00:04:00 2
君の脈で踊りたかった / 獅白ぼたん(cover)
2 weeks ago 01:20:18 48
1 Hour of Chad Orthodox Chants to Redeem Your Soul [РУССКАЯ ВЕРСИЯ]
2 weeks ago 00:41:19 1
Bollette +80%. Mercato tutelato, una truffa tutta Made in Italy - Matteo Brandi Gilberto Trombetta
3 weeks ago 01:59:56 3
PART 1- USAID vs DOGE! Trump et Musk choquent les Américains réveillés brutalement | MDL FINANCE
3 weeks ago 00:12:15 1
Как покрасить авто в гараже своими руками
4 weeks ago 00:18:46 1
I Crocheted a Houndstooth Vest | Pattern Walk-through
4 weeks ago 00:04:02 2
Guess I’m Falling In Love - The Velvet Underground (Music Video)
4 weeks ago 00:05:50 10
Open Air - This Music
4 weeks ago 00:15:11 2
СУПЕР УДОБРЕНИЕ ДОМАШНИЙ ЦИМУС: в 8 раз дешевле своими руками и в 100 раз лучше!
1 month ago 00:04:55 14
Haddaway - What Is Love (Just Dance - Dance Video & Movie) Roberto F
1 month ago 00:18:13 101
Bintac MCAR Review (Multi Caliber Air Rifle) 1000 yd MOA Long Range PCP Sniper Rifle +.457 ZAN Slugs
1 month ago 00:04:16 1
Gema Tamarit Martinez & Anne Alos Palomero – Rising Stars (Spanish Pole Vaulter)
1 month ago 00:59:13 1
BEST REACTIONS of ANATOLY 2024 | Elite Powerlifter Pretended to be a CLEANER in Gym Prank
1 month ago 00:10:17 2
DRIFTERZ – THE BEGINNING: PART 1 | TIL SCHWEIGER | Official Action Movie 2025 | 4K ULTRA HD
1 month ago 00:23:27 1
❄️Новогоднее украшение кухни❄️три композиции своими руками🎄вкусный и полезный завтрак
1 month ago 00:03:40 1
Marc Philippe - Broken Mess (Lyric Video)
1 month ago 00:02:35 2
8 Ball Pool Hack iOS & Android - UPDATED 8 Ball Pool MOD APK with Aim Tool App 2025
1 month ago 00:02:32 2
Dragon Ball Legends Hack/MOD APK iOS & Android - How to Get Unlimited Chrono Crystals in 2025
1 month ago 00:05:41 1
Harri Agnel - Lovst (Original Mix) [Official Audio with lyrics]
1 month ago 00:02:15 1
Coin Master Hack iOS & Android - How to Get Coin Master Free Unlimited Spins 2025
1 month ago 00:08:24 15
Primitive Technology: Cord drill and Pump drill
1 month ago 00:09:41 10
HOPE AMIDST THE ASHES - MIRACLE IN THE PALISADES
1 month ago 00:02:29 2
Bad History - TRUMP (Pump Trump)
1 month ago 00:12:14 1
Часть 2 Вовка из Тридевятого царства своими руками/Vovka from the Faraway Kingdom with his own hands