npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

synz-anti-link

v5.0.4

Published

Anti Links package for Discord, prevents links from being posted in chat.

Downloads

8

Readme

anti-link-for-discord

Anti Links package for Discord, prevents links from being posted in chat.

Note: Please update to v5.0.0+ for a better and accurate anti-link system.

Installation

npm i synz-anti-link

Example

const AntiLinkClient = require("../src/index");
const { Client } = require("discord.js");
const client = new Client({ intents: ["GUILD_MESSAGES", "GUILDS"] });

const antilink = new AntiLinkClient({
  warnMessage: (message) => `${message.author.toString()}, No links.`,
  muteCount: 5,
  kickCount: 10,
  banCount: 15,
  deleteMessage: true,
});

client.on("ready", () => {
  console.log("Bot is online");
});

client.on("messageCreate", (message) => {
  antilink.handleMessages(message);
});

antilink.on("muteCountReached", (message, user) => {
  user.send("You have been muted for sending links");
  // mute the user here
});

antilink.on("kickCountReached", (message, user) => {
  user.send("You have been kicked for sending links");
  // kick the user here
});

antilink.on("banCountReached", (message, user) => {
  user.send("You have been banned for sending links");
  // ban the user here
});

client.login("token of the bot");

Events

  1. 'muteCountReached' (message, user) - Emitted when a member sends links as many times as specified in AntiLinkOptions.muteCount
  2. 'kickCountReached' (message, user) - Emitted when a member sends links as many times as specified in AntiLinkOptions.kickCount
  3. 'banCountReached' (message, user) - Emitted when a member sends links as many times as specified in AntiLinkOptions.banCount

API

AntiLinkClient.constructor(options)

options is an object which can contain the following:

  1. warnMessage (string or a function): Sent when a user sends a link or an invite in chat. Can be either a string or a function, a message is sent in the channel if the type of warnMessage is string, or the function is called if the type is a function.
  2. muteCount (number): The amount of times a user has to send a link or an invite to be muted (muteCountReached event is emitted).
  3. kickCount (number): The amount of times a user has to send a link or an invite to be kicked (kickCountReached event is emitted).
  4. banCount (number): The amount of times a user has to send a link or an invite to be banned (banCountReached event is emitted).
  5. deleteMessage (boolean): Whether to delete the message (which is a link or an invite).
  6. ignoredUsers (array): An array of user IDs to ignore.
  7. ignoredChannels (array): An array of channel IDs to ignore.
  8. ignoredRoles (array): An array of role IDs to ignore (the users with those roles will be ignored).

AntiLinkClient.handleMessages(message)

This will initialize the AntiLinkClient and start the anti-link filter.

If you encounter any issues, please DM me on Discord: Synz#3471