antiscamlinks

1.0.2 • Public • Published

antiscam

A simple node module to help prevent discord scam links from being spammed in your chat


Support


Installation

npm i antiscam@latest


Constructor

Base customization for the module.

Entry Type Definition
#1 CLIENT Your client variable
#2 BOOLEAN Whether or not to toggle debug mode and error logs

Code Example

const Discord = require('discord.js')
const client = new Discord.Client({ partials: ['CHANNEL', 'MESSAGE', 'GUILD_MEMBER', 'USER'] })
const antiscam = require('antiscamlinks');
const badlink = antiscam(client, true)

client.on('message', async message => {
    await badlink.checkLink(message)
});

client.login('YOUR_BOT_TOKEN')

/antiscamlinks/

    Package Sidebar

    Install

    npm i antiscamlinks

    Weekly Downloads

    0

    Version

    1.0.2

    License

    ISC

    Unpacked Size

    2.56 kB

    Total Files

    3

    Last publish

    Collaborators

    • jordan2139