This is a template for creating Discord Bots using the discord.js library with TypeScript. It's designed to be a starting point for building your own Discord bots while taking advantage of modern TypeScript features like type safety, async/await, and more.
- Uses TypeScript for better type checking and development experience.
- Built with discord.js v14+.
- Supports multiple command handlers.
- Easy-to-extend structure.
- Handles async operations cleanly with
async/await
. - Lightweight and simple to set up.
Before getting started, make sure you have the following installed:
- Node.js (v16.9 or higher) - Download Node.js
- npm (comes with Node.js)
- Discord Developer Account - Create an application here
Start by initializing a new project and installing the required dependencies:
npm install discord.js @types/node typescript ts-node