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