# discordjs-automod

## Installation

`npm install discordjs-automod`

## Example Usage

```js
const Discord = require("discord.js");
const automod = require("discordjs-automod");

const bot = new Discord.Client();
const client = new automod.Client(bot);

const guild = client.getGuild(bot.guilds.cache.first().id);

bot.on("message", async msg => {
  guild.AntiInvite.check(msg) != null
    ? msg.channel.send(guild.AntiInvite.check(msg))
    : null;
});
```
