fjodor-rybakov / discord-nestjs

๐Ÿ‘พ NestJS package for discord.js
MIT License
270 stars 49 forks source link
bot decorator discord nest nestjs typescript

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications, heavily inspired by Angular.

<p align="center">

Package License

๐Ÿ‘จ๐Ÿปโ€๐Ÿ’ป Installation

$ npm install @discord-nestjs/core discord.js

Or via yarn

$ yarn add @discord-nestjs/core discord.js

๐Ÿงพ Description

NestJS package for discord.js

This monorepo consists of several packages.

โ“ Answers on questions

The bot starts up, but the slash commands and events do not work

Click to expand Check your intent is passed to the `discordClientOptions` of the module. [More info](https://discordjs.guide/popular-topics/intents.html#privileged-intents)

I created DTO and added SlashCommandPipe, but when I receive response to the command, the DTO fields are missing

Click to expand Set `useDefineForClassFields` to `true` in your `tsconfig.json`. Also check that the `@InteractionEvent` decorators are set.

Any questions or suggestions? Join Discord https://discord.gg/kv89Q2dXSR