How to build a Discord.js Slash Command Bot? - Part 1 - Code Repository Included

Опубликовано: 04 Август 2026
на канале: RatPhd
1,665
28

This video talks all about how to build Slash commands in Discord.js V13 on Node.js.

Leave me a star on my repo below! It would be greatly appreciated :) All of the code in the video is in the repo below!

Tutorial Repository: https://github.com/Slashroot101/Disco...

▬ Contents of this video ▬▬▬▬▬▬▬▬▬▬
0:00 - Intro
1:10 - Setup
2:30 - Setting up linting
3:57 - Adding the bot to your server
6:35 - Scaffolding your project
7:00 - Setting up environment variables
11:28 - Connecting the bot to Discord
13:45 - Creating a NPM script to run the bot
14:45 - Creating slash commands and deploying
21:40 - Creating your first command
23:30 - Outro

Join our Community Discord:   / discord   - feel free to ask any question in here! It is pretty barebones right now.

Discord.js has a come a long way since the early days of Node! Try out a completely new style of commands called slash commands with Discord.js auto-validation of commands!

#nodejs #programming #bot #discord #discordjs #javascript #codetutorial #tutorial