2.1.1 • Published 1 year ago

discord-anti-phishing v2.1.1

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

discord-anti-phishing

Installation:

Node.js 17.0.0 or newer is required.

discord.js 13.0.0 or newer is required.

npm install discord.js@latest

Usage:

const Discord = require('discord.js')
const client = new Discord.Client({
	intents: 32767,
});
const { antiPhishing } = require('discord-anti-phishing')

client.login('TOKEN')

client.on('ready', () => {
    console.log('Ready')
})

client.on('messageCreate', async message => {

    antiPhishing(message).then(info => {
        //message will be automatically deleted
        if(info){
            //Embed example
            let embed = new Discord.MessageEmbed() 
            .setColor('RED')    
            .setTitle('Link forbidden')     
            .setDescription('user provide a forbidden link') 
            .addField('User:', '`' + info.userTag + ' | ' + info.userID + '`')
            .addField('Link:', '`' + info.phishingLink + '`')
            .setThumbnail(info.userImg)

            message.channel.send({embeds: [embed]})
            //all you custom code
        }
    })
})

Docs:

    .userUsername, Show the user username
    |
    .memberNickname, Show the member nickname
    |
    .userID, show the user id
    |
    .userImg, show the user profile image
    |
    .phishingLink, show phishing link in message
2.1.1

1 year ago

2.1.0

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago