[NEW] Code your Own Discord Bot | Discord.JS v13 | Slash Commands + Command & Event Handler [Ep.2]

Опубликовано: 16 Март 2026
на канале: Jishan Kharbanda
1,978
114

Learn how to create handlers for your slash commands and events in Discord.JS v13!

✅ Be Sure to Subscribe to my Channel for more content like this: https://bit.ly/2BP1tG8
▬▬▬▬▬▬▬▬▬▬▬▬▬
📺Watch the entire Discord Bot playlist for v13 (highly recommended) ►► https://bit.ly/3b43j7x
📺Watch Episode 1 here - Installation/Setup - ►►    • [NEW] Code your Own Discord Bot | Discord....  
📺Watch the Discord.JS v12 series ►► https://bit.ly/3iR01X0
📺Watch this playlist for all the latest and greatest tech videos ►► http://bit.ly/YTTPYL
▬▬▬▬▬▬▬▬▬▬▬▬▬
Run this command to install the necessary packages to use slash commands in your bot:

npm install @discordjs/rest discord-api-types @discordjs/builders
▬▬▬▬▬▬▬▬▬▬▬▬▬
In this step-by-step tutorial, I will show you guys can create your own slash command, event, and function handler for your Discord Bot with Discord.JS v13. Event handlers allow you to manage all your various events inside of Discord whether from the client or guild side. Command handlers & slash command handlers allow you to run commands in your server with your Discord Bot in a very efficient manner! Be sure to watch the entire video to get the most out of it; if you have any questions, feel free to leave them below in the comments to have them answered. Enjoy!
▬▬▬▬▬▬▬▬▬▬▬▬▬
-- LINKS --
Node.js ►► https://bit.ly/3yvIjzZ
Visual Studio Code ►► https://bit.ly/3ONMi00
Discord Developer Portal ►► https://bit.ly/3a1eAp0
Discord.JS Documentation ►►https://bit.ly/3ONYMoZ

📜 Discord.js Guide - Command Handler ►► https://discordjs.guide/creating-your...

📜 Discord.js Guide - Event Handler ►► https://discordjs.guide/creating-your...

📜 Discord.js Guide - Registering Slash Commands ►► https://discordjs.guide/interactions/...
▬▬▬▬▬▬▬▬▬▬▬▬▬
⏱️Timestamps⏱️
0:00 Introduction
0:25 Granting our Bot Application Command Permissions
2:00 Creating our core folders and files (VERY IMPORTANT)
4:16 Coding the Main File (index.js)
7:48 Coding our Event Handler
8:36 Coding our Functions Handler
12:28 Making our First Slash Command (ping)
13:16 Finishing the Functions Handler
19:37 Finishing the Event Handler
21:06 Running our Bot
23:09 Conclusion
23:39 Outro
▬▬▬▬▬▬▬▬▬▬▬▬▬
📸Make sure to follow me and stay connected with me on Instagram:   / jishk11  

Make sure to subscribe, if you haven't already, like, and share this video with your friends and family.
▬▬▬▬▬▬▬▬▬▬▬▬▬
▬ STAY UP-TO-DATE! ▬
Make sure to subscribe to my channel & opt-in for push notifications (click the BELL icon next to the subscribe button) to be notified immediately when I release new videos! ▬▬▬▬▬▬▬▬▬▬▬▬▬