antiscamlinks
v1.0.2
Published
A simple node module to help prevent discord scam links from being spammed in your chat
Downloads
4
Maintainers
Readme
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')