Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.
Adam Pine edited this page May 18, 2021 · 10 revisions




discord.ts (@typeit/discord)

Create your discord bot by using TypeScript and decorators!


Introduction

This module is an extension of discord.js, so the internal behavior (methods, properties, ...) is the same.

☎️ Need help?

Join our Discord server

View Example Projects

View Discord.js Docs

View other projects that use Discord.ts

💾 Installation

Use npm or yarn to install @typeit/discord with discord.js:

npm i @typeit/discord discord.js

Your tsconfig.json should look like this:

{
  "compilerOptions": {
    "module": "commonjs",
    "target": "es2017",
    "noImplicitAny": false,
    "sourceMap": true,
    "outDir": "build",
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "importHelpers": true,
    "forceConsistentCasingInFileNames": true,
    "lib": [
      "es2017",
      "esnext.asynciterable"
    ],
    "moduleResolution": "node"
  },
  "exclude": [
    "node_modules"
  ]
}