Uploaded August 2023 | Updated September 2026, 1 week ago
Learn how to use buttons with Discord.JS v14 for your Discord bots.
🧠 Learn website dashboards + bot monetization ➡ levelupyourbot.com
🔥 Source code download ➡ wornoffkeys.com/code?yt=p8xv8nL96ss
🙋♂️ Need help? Ask in our Discord community:
wornoffkeys.com/discord
📺 Watch more Discord.JS videos here:
wornoffkeys.com/playlist/djs
------------------------------
In this tutorial, we will teach you how to use buttons using Discord.JS v14 for your Discord bots. To start, we will guide you on how to access a text channel and fetch recent messages sent by your bot. Then, we will show you how to create an Action Row Builder and add buttons to it, including customizing their styles and making them act as links.
But buttons are useless without listening for clicks. So, we will teach you how to listen for button interactions and handle them by creating a simple utility file called "button-wrapper.js" to safely add up to 25 buttons to a components array.
We will also guide you on how to associate data with each button by creating a buttonData array, which can contain any type of data you want to associate with a button. Lastly, we will show you how to fix custom ID issues and reply to users with the message associated with a clicked button.
By the end of this tutorial, you'll be able to create interactive and engaging buttons for your Discord bots using Discord.JS v14 and handle their interactions like a pro. So, join us and let's get started!
------------------------------
🕒 Timestamps:
00:00 Introduction
00:43 Creating our button
01:04 Link buttons
01:16 Handling button clicks
02:01 The +5 button error
04:42 Website dashboards + monetizing your bot
04:57 Adding data to buttons
#discordjs #discordbots #wornoffkeys
FTC Legal Disclaimer - Some links found in my video descriptions might be affiliate links, meaning I will make commission on sales you make through my link. This is at no extra cost to you and it helps support the channel so I can make more free YouTube videos.
Learn how to use buttons with Discord.JS v14 for your Discord bots.
🧠 Learn website dashboards + bot monetization ➡ levelupyourbot.com
🔥 Source code download ➡ wornoffkeys.com/code?yt=p8xv8nL96ss
🙋♂️ Need help? Ask in our Discord community:
wornoffkeys.com/discord
📺 Watch more Discord.JS videos here:
wornoffkeys.com/playlist/djs
------------------------------
In this tutorial, we will teach you how to use buttons using Discord.JS v14 for your Discord bots. To start, we will guide you on how to access a text channel and fetch recent messages sent by your bot. Then, we will show you how to create an Action Row Builder and add buttons to it, including customizing their styles and making them act as links.
But buttons are useless without listening for clicks. So, we will teach you how to listen for button interactions and handle them by creating a simple utility file called "button-wrapper.js" to safely add up to 25 buttons to a components array.
We will also guide you on how to associate data with each button by creating a buttonData array, which can contain any type of data you want to associate with a button. Lastly, we will show you how to fix custom ID issues and reply to users with the message associated with a clicked button.
By the end of this tutorial, you'll be able to create interactive and engaging buttons for your Discord bots using Discord.JS v14 and handle their interactions like a pro. So, join us and let's get started!
------------------------------
🕒 Timestamps:
00:00 Introduction
00:43 Creating our button
01:04 Link buttons
01:16 Handling button clicks
02:01 The +5 button error
04:42 Website dashboards + monetizing your bot
04:57 Adding data to buttons
#discordjs #discordbots #wornoffkeys
FTC Legal Disclaimer - Some links found in my video descriptions might be affiliate links, meaning I will make commission on sales you make through my link. This is at no extra cost to you and it helps support the channel so I can make more free YouTube videos.
![Discord JS Role Commands: Give, Remove, and Has (2020) [Episode #42]
Learn how to manage roles with a command in Discord.JS.
🔥 Source code download ➡ https://wornoffkeys.com/code?yt=pCFCLB-jzoo
🧠 Learn website dashboards + bot monetization ➡ https://levelupyourbot.com
🙋♂️ Need help? Ask in our Discord community:
https://wornoffkeys.com/discord
📺 Watch more Discord.JS videos here:
https://wornoffkeys.com/playlist/djs
💡 Have an idea for a video or course? Request it here:
https://wornoffkeys.com/content-request
🕒 Timestamps:
00:00 Introduction
00:29 Creating the give role command
09:21 Creating the remove role command
11:27 Creating the has role command
12:28 Outro
#discordjs #discordbots #wornoffkeys
FTC Legal Disclaimer - Some links found in my video descriptions might be affiliate links, meaning I will make commission on sales you make through my link. This is at no extra cost to you and it helps support the channel so I can make more free YouTube videos. Discord JS Role Commands: Give, Remove, and Has (2020) [Episode #42]](https://i.ytimg.com/vi/pCFCLB-jzoo/mqdefault.jpg)


![Discord.JS v13 - Slash Commands [Ep. 4]
Slash Commands are the best way to utilize command handling in Discord.JS
🔥 Source code download ➡ https://wornoffkeys.com/code?yt=pXehoXnFxPM
🧠 Learn website dashboards + bot monetization ➡ https://levelupyourbot.com
🙋♂️ Need help? Ask in our Discord community:
https://wornoffkeys.com/discord
📺 Watch more Discord.JS videos here:
https://wornoffkeys.com/playlist/djs
💡 Have an idea for a video or course? Request it here:
https://wornoffkeys.com/content-request
🕒 Timestamps:
00:00 What we will and wont cover
00:43 Running our bot
01:39 Making a ping Slash Command
06:41 Making an add Slash Command
11:07 Deferring a reply
13:15 Outro
#discordjs #discordbots #wornoffkeys
FTC Legal Disclaimer - Some links found in my video descriptions might be affiliate links, meaning I will make commission on sales you make through my link. This is at no extra cost to you and it helps support the channel so I can make more free YouTube videos. Discord.JS v13 - Slash Commands [Ep. 4]](https://i.ytimg.com/vi/pXehoXnFxPM/mqdefault.jpg)
![MongoDB in NodeJS - Updating Data (2020) [Episode #5]
In this video we go over how to update a single document as well as how to update multiple documents within MongoDB.
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
🖥️ Source code:
https://github.com/AlexzanderFlores/Worn-Off-Keys-MongoDB-NodeJS
🙋♂️ Need help? Ask in our Discord community:
https://wornoffkeys.com/discord
💡 Have an idea for a video or course? Request it here:
https://wornoffkeys.com/content-request
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
🕐 Timestamps:
00:00 Introduction
00:32 Using updateOne
03:03 Using updateMany
03:33 Outro
#mongodb #javascript #nodejs #wornoffkeys
FTC Legal Disclaimer - Some links found in my video descriptions might be affiliate links, meaning I will make commission on sales you make through my link. This is at no extra cost to you and it helps support the channel so I can make more free YouTube videos. MongoDB in NodeJS - Updating Data (2020) [Episode #5]](https://i.ytimg.com/vi/peVGxJCMGQI/mqdefault.jpg)
![MongoDB in NodeJS - Array Query Operators: ElemMatch, All, and Size (2020) [Episode #17]
Sometimes you need to search through arrays, in this video I show you 3 ways of how to do that. First we look at the $all operator, which will let you find documents that contain all specified elements of a given array. Next we look at the size operator, which allows you to search by array size. Last we look at the elemMatch operator, which lets you find values conditionally (greater than, less than, etc) from within the array.
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
🖥️ Source code:
https://github.com/AlexzanderFlores/Worn-Off-Keys-MongoDB-NodeJS
🙋♂️ Need help? Ask in our Discord community:
https://wornoffkeys.com/discord
💡 Have an idea for a video or course? Request it here:
https://wornoffkeys.com/content-request
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
🕐 Timestamps:
00:00 Introduction
00:33 Adding an array to our schema and document
01:47 Using the $all operator
03:44 Using the $size operator
04:38 Using the $elemMatch operator
05:51 Outro
#mongodb #javascript #nodejs #wornoffkeys
FTC Legal Disclaimer - Some links found in my video descriptions might be affiliate links, meaning I will make commission on sales you make through my link. This is at no extra cost to you and it helps support the channel so I can make more free YouTube videos. MongoDB in NodeJS - Array Query Operators: ElemMatch, All, and Size (2020) [Episode #17]](https://i.ytimg.com/vi/q4v_aUiVWYQ/mqdefault.jpg)
![Discord.JS v13 - Set Status Command and Auto Changing Status [Ep. 12]
Learn how to change your Discord bots status.
🔥 Source code download ➡ https://wornoffkeys.com/code?yt=q6L53wJN5mw
🧠 Learn website dashboards + bot monetization ➡ https://levelupyourbot.com
🙋♂️ Need help? Ask in our Discord community:
https://wornoffkeys.com/discord
📺 Watch more Discord.JS videos here:
https://wornoffkeys.com/playlist/djs
💡 Have an idea for a video or course? Request it here:
https://wornoffkeys.com/content-request
🕒 Timestamps:
00:00 Set status command
07:11 Auto changing status
12:04 Outro
#discordjs #discordbots #wornoffkeys
FTC Legal Disclaimer - Some links found in my video descriptions might be affiliate links, meaning I will make commission on sales you make through my link. This is at no extra cost to you and it helps support the channel so I can make more free YouTube videos. Discord.JS v13 - Set Status Command and Auto Changing Status [Ep. 12]](https://i.ytimg.com/vi/q6L53wJN5mw/mqdefault.jpg)
![Discord JS Ban and Kick Command (2020) [Episode #12]
Learn how to create a ban and kick command using Discord.JS
🔥 Source code download ➡ https://wornoffkeys.com/code?yt=qIg1cRKafvQ
🧠 Learn website dashboards + bot monetization ➡ https://levelupyourbot.com
🙋♂️ Need help? Ask in our Discord community:
https://wornoffkeys.com/discord
📺 Watch more Discord.JS videos here:
https://wornoffkeys.com/playlist/djs
💡 Have an idea for a video or course? Request it here:
https://wornoffkeys.com/content-request
🕒 Timestamps:
00:00 Introduction
00:16 Creating our ban command
05:17 Creating our kick command
06:01 Outro
#discordjs #discordbots #wornoffkeys
FTC Legal Disclaimer - Some links found in my video descriptions might be affiliate links, meaning I will make commission on sales you make through my link. This is at no extra cost to you and it helps support the channel so I can make more free YouTube videos. Discord JS Ban and Kick Command (2020) [Episode #12]](https://i.ytimg.com/vi/qIg1cRKafvQ/mqdefault.jpg)
![Discord Bot Development for Beginners [Ep 1]
Discord bots are fun and simple projects. In this video we create a basic Hello World bot.
🔥 Source code download ➡ https://wornoffkeys.com/code?yt=qRMVNtIF73c
🧠 Learn website dashboards + bot monetization ➡ https://levelupyourbot.com
🤖 Discord Developer Portal:
https://discord.com/developers/applications
🙋♂️ Need help? Ask in our Discord community:
https://wornoffkeys.com/discord
📺 Watch more Discord.JS videos here:
https://wornoffkeys.com/playlist/djs
💡 Have an idea for a video or course? Request it here:
https://wornoffkeys.com/content-request
🕒 Timestamps:
00:00 Creating your project
00:30 Creating your bot
01:55 Writing the code
05:07 Outro
#discordjs #discordbots #wornoffkeys
FTC Legal Disclaimer - Some links found in my video descriptions might be affiliate links, meaning I will make commission on sales you make through my link. This is at no extra cost to you and it helps support the channel so I can make more free YouTube videos. Discord Bot Development for Beginners [Ep 1]](https://i.ytimg.com/vi/qRMVNtIF73c/mqdefault.jpg)

