1.0.3 • Published 4 years ago

discord-antilinks v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

discord-antilinks ⚠

For support on my packages join my discord!

https://discord.gg/4f6AVUwWqN

Installation

npm install discord-antilinks --save

Usage v13

const discord = require("discord.js")
const { Intents } = require("discord.js")
const client = new discord.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("muteCountReached", (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. )
    muteCountReached: Event ( muteCountReached is the event that triggers when a user hits the limit of the mute count. )
    */


})
client.on("kickCountReached", (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. )
      kickCountReached: Event ( kickCountReached is the event that triggers when a user hits the limit of the kick count. )
      */


})
client.on("banCountReached", (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. )
      banCountReached: Event ( banCountReached is the event that triggers when a user hits the limit of the ban count. )
      */

})

client.login(token)

Usage v12

const discord = require("discord.js")
const client = new discord.Client()
const antilink = require("discord-antilinks").v12

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("muteCountReached", (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. )
    muteCountReached: Event ( muteCountReached is the event that triggers when a user hits the limit of the mute count. )
    */


})
client.on("kickCountReached", (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. )
      kickCountReached: Event ( kickCountReached is the event that triggers when a user hits the limit of the kick count. )
      */


})
client.on("banCountReached", (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. )
      banCountReached: Event ( banCountReached is the event that triggers when a user hits the limit of the ban count. )
      */

})

client.login(token)

Want to help with the package?

Join the discord and send a message in 💻│discord-antilinks channel

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago