DEV Community

Cover image for Creating a Discord bot with discord.js, Typescript and Heroku
David Armendáriz
David Armendáriz

Posted on

Creating a Discord bot with discord.js, Typescript and Heroku

Hi! So, some months ago, I was interested in creating a bot for Discord. I searched for tutorials and they were not too good. Worst of all, they taught you how to deploy it to Repl.it. As a senior software dev, I was like: what? Repl.it is the last thing I would think about to deploy anything.

I started coding the bot and the documentation again was not good. They even have wrong information on their docs so I had to ask people on the official discord.js server to clear some doubts. Sometimes people are nice, sometimes they aren't. They have concepts like cached guilds and uncached guilds that took me some time to grasp because they do weird things in Typescript.

Anyway... I gathered all of that knowledge and decided to make a course in Udemy and Skillshare. Here you will learn a lot of things:

  • Typescript
  • Reply to messages
  • Create slash commands
  • Create buttons and links
  • Create message collectors
  • Create embeds
  • Create reactions collectors
  • Create sub commands
  • 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
  • Permissions
  • Best practices

Among other things...

This is the link with the coupon code: https://www.udemy.com/course/building-a-discord-bot-w-discordjs-typescript-and-heroku/learn/lecture/31964864?couponCode=DISCORDBOT#overview

Discussion (1)

Collapse
sloan profile image
Sloan

Hi there, this post might fit better as a DEV Listing. It’s a dedicated area of the platform where community members and organizations are encouraged to publish information related to events, products, services, job listings, and everything in between.