Skip to content

A modular Discord bot template in pure JavaScript, designed for easy setup and customization.

License

Notifications You must be signed in to change notification settings

0xNizar/Diszar-Template

Repository files navigation

Discord.js Bot Template (TypeScript)

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.

Features

  • 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.

Prerequisites

Before getting started, make sure you have the following installed:

Setup

1. Install Dependencies

Start by initializing a new project and installing the required dependencies:

npm install discord.js @types/node typescript ts-node