
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
discord-antilinks
Advanced tools
npm install dsc-antilinks --save
const { Intents, Client } = require("discord.js")
const client = new Client({ intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES]})
const antilink = require("discord-antilinks")
antilink(client, {
muteCount: 5,
kickCount: 6,
banCount: 7,
ignoredChannels: [], //Put the channel ID's in a array. Example ( ['ChannelId', 'ChannelId'] )
ignoredRoles: [], //Put the role ID's in a array. Example ( ['RoleId', 'RoleId'] )
ignoredUsers: [] //Put the user ID's in a array. Example ( ['UserId', 'UserId'] )
})
client.on("LinkSent", (message, user) => {
/*
user : GuildMember ( User is added to kick or ban the user for example: user.kick() or user.ban() )
message: MessageObject ( Message is used to send a message to the channel. )
LinkSent: Event ( LinkSent is the event that triggers when a user sends a link. )
*/
})
client.on("countReached", (msg, user) => {
/*
user : GuildMember ( User is added to kick or ban the user for example: user.kick() or user.ban() )
message: MessageObject ( Message is used to send a message to the channel. )
countReached: Event ( countReached is the event that triggers when a user hits the limit of the mute/kick/ban count. )
*/
})
client.login(token)
const { Intents, Client } = require("discord.js")
const client = new Client({ intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES]})
const antilink = require("dsc-antilinks")
antilink(client, {
muteCount: 5,
kickCount: 6,
banCount: 7,
ignoredChannels: [], // Put the channel ID's in a array. Example ( ['ChannelId', 'ChannelId'] )
ignoredRoles: [], // Put the role ID's in a array. Example ( ['RoleId', 'RoleId'] )
ignoredUsers: [] // Put the user ID's in a array. Example ( ['UserId', 'UserId'] )
})
client.on("LinkSent", (message, user) => {
/*
user : GuildMember ( User is added to kick or ban the user for example: user.kick() or user.ban() )
message : MessageObject ( Message is used to send a message to the channel. )
LinkSent : Event ( LinkSent is the event that triggers when a user sends a link. )
*/
message.channel.send(`<@${user.id}>, You can't send an link!`)
})
client.on("countReached", (msg, user) => {
/*
user : GuildMember ( User is added to kick or ban the user for example: user.kick() or user.ban() )
message : MessageObject ( Message is used to send a message to the channel. )
countReached : Event ( countReached is the event that triggers when a user hits the limit of the mute/kick/ban count. )
*/
if(type == 'Mute' || type == 'Kick' || type == 'Ban'){
var channel = message.guild.channels.cache.get("Channel id")
channel.send(`<@${user.id}>, Just hit the maximum number of links sent. ${type}`)
}
})
client.login(token)
Join the discord and send a message in #💻│discord-antilinks channel
FAQs
Simple antilink system for discord.js!
We found that discord-antilinks demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.