# discord-dmsupport

> This package allows you to chat with people who direct message your discord bot.

Latest version **1.0.5** (published 2019-03-23) · ISC license · 0 weekly downloads

## Install

```sh
npm install discord-dmsupport
pnpm add discord-dmsupport
yarn add discord-dmsupport
bun add discord-dmsupport
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2019-03-23 |
| First published | 2019-01-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Clemens Ertle |
| Maintainers | clemens_e |
| Keywords | discord.js, dm-support, discord-dm, discord-plugin |

## Links

- npm: https://www.npmjs.com/package/discord-dmsupport
- npm.io page: https://npm.io/package/discord-dmsupport

## Recent versions

- 1.0.5 (latest) — 2019-03-23
- 1.0.4 — 2019-03-23
- 1.0.3 — 2019-03-23
- 1.0.2 — 2019-01-13
- 1.0.1 — 2019-01-13
- 1.0.0 — 2019-01-13

## README

This package allows you to chat with people who direct message your discord bot.


## How does it work?
Any message received in a dm channel of your bot will be forwarded to a channel in the given Guild.<br>
This package will create a channel for each user under the "dm-support" category. If none exists it will create that category.<br>
Any message send in that channel will be forwarded in the dm channel with the User.


## Why should I need that?
Some confused Users still dm Bots and hope for an answer.<br>
This package will allow doing so. You can give support over your bots direct messages.

## How do I implement it in my current code?
```javascript
const discord = require('discord.js');
const dmSupport = require('discord-dmsupport');

const client = new Discord.Client();
client.dm = new dmSupport(client, guildID, roleID);
/*
client = your discord client
guildID = the guild where the channels should be created
roleID = the role id (or member id) who should have access to the channels
*/
client.login('<token here>');

client.on('ready', () => {
    // Start the Service when your bot is ready!
    client.dm.startService();
});
```

---
_Source: https://npm.io/package/discord-dmsupport · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
