
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
discord-security
Advanced tools
const Discord = require('discord.js'); // Requiring Discord
const intents = new Discord.Intents(); // Intents
const client = new Discord.Client({ intents: 32767 }); // Bot
const DiscordSecurity = require('discord-security'); // Requiring the module
DiscordSecurity.init({ // Initialize the package
client: client, // Client (bot)
interval: 10, // Interval for reset data (in seconds)
limit: 3, // Max infractions did in the interval (10 seg) to punish
punishment: 'delete_roles', // Punishment
whitelist: ['user_id', 'role_id'], // Ignored users
options: { // AntiRaid Options
memberKick: true, // AntiKick System
memberBan: true, // AntiBan System
roleUpdate: true, // AntiRoleUpdate System
roleAdd: true, // AntiRoleAdd System
roleCreate: true, // AntiRoleCreate System
roleDelete: true, // AntiRoleDelete System
channelCreate: true, // AntiChannelCreate System
channelDelete: true, // AntiChannelDelete System
guildUpdate: true, // AntiGuildUpdate Sytem
}
});
client.on('ready', async () => {
console.log(`Logged in as ${client.user.username}.`)
});
client.login('YOUR TOKEN')
const Discord = require('discord.js'); // Requiring Discord
const intents = new Discord.Intents(); // Intents
const client = new Discord.Client({ intents: 32767 }); // Bot
const DiscordSecurity = require('discord-security'); // Requiring the module
DiscordSecurity.removeData() // Remove AntiRaid Data
FAQs
Punish members who abuse admin functions
The npm package discord-security receives a total of 563 weekly downloads. As such, discord-security popularity was classified as not popular.
We found that discord-security demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.