# discord-warning

> a warning system for discord.js bots --- # Installation ``` npm install discord-warning ``` # Usage ```javascript const Discord = require('discord.js'); const client = new Discord.Client(); const warns = require('discord-warning');

Latest version **1.0.5** (published 2022-09-19) · ISC license · 0 weekly downloads

## Install

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

## 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 | 2022-09-19 |
| First published | 2022-09-19 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | b.... |

## Links

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

## Dependencies (1)

- [mongoose](https://npm.io/package/mongoose.md) ^6.6.1

## Recent versions

- 1.0.5 (latest) — 2022-09-19
- 1.0.4 — 2022-09-19
- 1.0.3 — 2022-09-19
- 1.0.2 — 2022-09-19
- 1.0.1 — 2022-09-19

## README

# discord-warning
a warning system for discord.js bots
---
# Installation
```
npm install discord-warning
```
# Usage
```javascript
const Discord = require('discord.js');
const client = new Discord.Client();
const warns = require('discord-warning');

client.on('ready', () => {
  console.log(`Logged in as ${client.user.tag}!`);
});

client.on('message', (mesage) => {
  if (message.content === 'warn') {
    warns.addWarn(message.author.id, message.guild.id, 'test', message.author.id);. // adds a warn to the user
    console.log(warns.getWarns(message.author.id, message.guild.id)); // gets the warns of the user
  }
});
```

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