When you enroll through our links, we may earn a small commission—at no extra cost to you. This helps keep our platform free and inspires us to add more value.

SkillShare logo

Building a Discord Bot w/ discord. js, Typescript and Heroku

Unlock creativity with Skillshare! Learn acrylic painting, AI writing, graphic design, and photography.

     0 |
  • Reviews ( 0 )
Free

This Course Includes

  • iconskillshare
  • icon0 (0 reviews )
  • icon5 hours 41 minutes
  • iconenglish
  • iconOnline - Self Paced
  • iconcourse
  • iconSkillShare

About Building a Discord Bot w/ discord. js, Typescript and Heroku

Introduction

Things You Should Know

WSL

NVM

VSCode Extensions

Github code

Create A Server And Bots

Initial Configuration Part 1

Initial Configuration Part 2

Initial Configuration Part 3

Initial Configuration Part 4

UPDATE: Fixing the package versions

Making The Bot Go Online

Ping Pong

Handling Slash Commands

Creating Hello Command

Registering Guild Commands

Deploying To Heroku

Adding Node Version In Package Json

Add Command

Add Link

User Info Command Part 1

User Info Command Part 2

Poll Command Part 1

Poll Command Part 2

Poll Command Part 3

Poll Command Part 4

Poll Command Part 5

Poll Command Part 6

Poll Command Part 7

Poll Command Part 8

API Command Part 1

API Command Part 2

Help Command

Adding Jest Config

Test For Add Command

Self Roles Part 1

Self Roles Part 2

Don't forget to add the guild id to your environment variables!

Self Roles Part 3

Self Roles Part 4

Self Roles Part 5

IMPORTANT: Permissions V2 update

500 Conclusion

What You Will Learn?

  • Welcome to this course! In this course you will learn how to code a production-ready bot with discord.js and the recommended package to build slash commands, which is the @discordjs/builders. The latter implements a design pattern called the "builder" pattern, which makes it easier to build objects of classes. We will also not waste time and deploy our bot to Heroku as soon as we can. This is always one of the first steps you wanna do and we'll do it with CD (continuous deployment) by connecting Heroku to our GitHub repo. Many tutorials out there show you how to code bots without a structure and deploy it to… Replit? In this course that's not the case! We'll learn many things that will help you be a better software developer in general. You'll not only learn to code a bot, you'll learn best practices like creating a bot for development and another one for production. We'll do it just as if we were going to build a web app!.
  • Typescript.
  • Reply to messages.
  • Create slash commands.
  • Create buttons and links.
  • Create message collectors.
  • Create embeds.
  • Create reactions collectors.
  • Create subcommands.
  • Get information about a user and its roles.
  • Add options to commands.
  • Add simple tests.
  • Deploy to Heroku and connect it to GitHub for CD.
  • BEST PRACTICES.
  • Etc....