1.2.7 • Published 4 years ago
discord-security v1.2.7
💖 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 Data1.2.7
4 years ago
1.2.6
4 years ago
1.2.5
4 years ago
1.2.4
4 years ago
1.2.3
4 years ago
1.2.2
4 years ago
1.2.0
4 years ago
1.1.41
4 years ago
1.1.40
4 years ago
1.1.39
4 years ago
1.1.38
4 years ago
1.1.37
4 years ago
1.1.36
4 years ago
1.1.35
4 years ago
1.1.34
4 years ago
1.1.33
4 years ago
1.1.32
4 years ago
1.1.31
4 years ago
1.1.30
4 years ago
1.1.29
4 years ago
1.1.28
4 years ago
1.1.27
4 years ago
1.1.26
4 years ago
1.1.25
4 years ago
1.1.24
4 years ago
1.1.23
4 years ago
1.1.22
4 years ago
1.1.21
4 years ago
1.1.20
4 years ago
1.1.19
4 years ago
1.1.18
4 years ago
1.1.17
4 years ago
1.1.16
4 years ago
1.1.15
4 years ago
1.1.14
4 years ago
1.1.13
4 years ago
1.1.12
4 years ago
1.1.11
4 years ago
1.1.10
4 years ago
1.1.9
4 years ago
1.1.8
4 years ago
1.1.7
4 years ago
1.1.6
4 years ago
1.1.5
4 years ago
1.1.4
4 years ago
1.1.3
4 years ago
1.1.2
4 years ago
1.1.1
4 years ago
1.1.0
4 years ago
1.0.9
4 years ago
1.0.8
4 years ago
1.0.7
4 years ago
1.0.6
4 years ago
1.0.5
4 years ago
1.0.4
4 years ago
1.0.3
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago