discord-security
v1.2.7
Published
Punish members who abuse admin functions
Downloads
76
Maintainers
Readme
💖 Features
- Easy to use
- Anti-Raid System
- Configurable
- Works with all DJS versions
✨ How to use
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')
📌 Remove Anti-Raid Data
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