0.0.5 • Published 4 years ago
discordjs-automod v0.0.5
discordjs-automod
Installation
npm install discordjs-automod
Example Usage
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;
});