Learn how to create a Discord bot using Discord.js v14 in 2026! 🤖
In this beginner-friendly tutorial, we’ll build a fully functional Discord bot step-by-step, including commands, events, and proper project structure.
Discord: / discord
Patreon: / thenorthsolution
To get your discord bot credentials (it will guide you there):
/ discord
Create your bot:
In .env file add `TOKEN` and put your discord bot token there.
You can also find the `CLIENT_ID` and `APPLICATION_ID` there.
You also need `DEVELOPER_GUILD_ID`, which you can get by enabling Developer Mode in your user settings, then right-click your server icon and select "Copy Server ID".
0:00 Intro
1:29 commands/basic/ping.js
3:23 commands/fun/say.js
5:56 emojis.json
6:05 events/client/clientReady.js
7:00 events/interactions/slashCommands.js
8:58 functions/commandHandler.js
10:27 functions/eventHandler.js
12:18 functions/refreshCommands.js
14:32 index.js
Thank you for watching!
⭐ If this helped you, consider liking and subscribing for more Discord.js tutorials!
#discordbot #discordjs #javascript #coding #discorddeveloper