1.2.7 • Published 3 years ago

discord-security v1.2.7

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

💖 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

3 years ago

1.2.6

3 years ago

1.2.5

3 years ago

1.2.4

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.0

3 years ago

1.1.41

3 years ago

1.1.40

3 years ago

1.1.39

3 years ago

1.1.38

3 years ago

1.1.37

3 years ago

1.1.36

3 years ago

1.1.35

3 years ago

1.1.34

3 years ago

1.1.33

3 years ago

1.1.32

3 years ago

1.1.31

3 years ago

1.1.30

3 years ago

1.1.29

3 years ago

1.1.28

3 years ago

1.1.27

3 years ago

1.1.26

3 years ago

1.1.25

3 years ago

1.1.24

3 years ago

1.1.23

3 years ago

1.1.22

3 years ago

1.1.21

3 years ago

1.1.20

3 years ago

1.1.19

3 years ago

1.1.18

3 years ago

1.1.17

3 years ago

1.1.16

3 years ago

1.1.15

3 years ago

1.1.14

3 years ago

1.1.13

3 years ago

1.1.12

3 years ago

1.1.11

3 years ago

1.1.10

3 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago