1.0.2 • Published 2 years ago

antiscamlinks v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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.

EntryTypeDefinition
#1CLIENTYour client variable
#2BOOLEANWhether 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')