Nitrogen Pumpkin Mulch

    discordjs-automod

    0.0.5 • Public • Published

    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;
    });

    Install

    npm i discordjs-automod

    DownloadsWeekly Downloads

    1

    Version

    0.0.5

    License

    Apache-2.0

    Unpacked Size

    20.1 kB

    Total Files

    12

    Last publish

    Collaborators

    • deathhound