Coder Social home page Coder Social logo

derpinou / discord-antiraid Goto Github PK

View Code? Open in Web Editor NEW
54.0 3.0 9.0 840 KB

Discord.js extention library for protect discord servers against Raids

Home Page: https://discord.gg/A7KUtE4hds

License: MIT License

TypeScript 37.44% JavaScript 62.56%

discord-antiraid's Introduction

Discord.js extention library for protecting discord servers against Raids

downloadsBadge versionBadge


discord GitHub license

- Installation:


npm i discord-antiraid

Supported Events: (If you want to Add your Own Events, Use AntiRaid Class Methods in the documentation or follow Example here)

    channelCreate
    channelDelete
 
    roleCreate
    roleDelete
 
    guildBanAdd
    guildBanRemove
    guildMemberRemove

    threadCreate
    threadDelete

Create AntiRaid: (Example: here)

const {AntiRaidManager} = require('discord-antiraid');

const antiraid = new AntiRaidManager(client, {
    enabled: true,
    events: [
        "channelCreate",
        "channelDelete",
        "roleCreate",
        "roleDelete",
        "threadCreate",
        "threadDelete",
    ],
    exemptedRoles: [], // Ignored roles (ex: ['848500766955405332'])
    exemptedUsers: [], // Ignored users (ex: ['555429540613062656'])
    rateLimit: 2, // Number of events before sanction
    time: 30000, // Time in ms before case deletion
    sanction: 'removeAllRoles', // Sanction to apply (ex: 'removeAllRoles' / 'ban' / 'kick')
    reason: 'discord-antiraid' // Audit Log Reason
})

Using Database (Example with quick.db):

- Changelog:

See Changelog here

- Contributors:

- Special Credits:

Thanks to Androz with his repo discord-giveaways for doc generator and typing example

Thanks to Sayrix for making the logo and the banner

- License:

Licensed under the MIT license.

discord-antiraid's People

Contributors

aidan-the-dev avatar derpinou avatar flav-code avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

discord-antiraid's Issues

JS.ORG CLEANUP

JS.ORG CLEANUP

Hello, it seems a js.org subdomain that was requested to target this repository no longer works.
The subdomain requested was discord-antiraid.js.org and had the target of derpinou.github.io/discord-antiraid.
It produced the following failures when tested as part of the cleanup:

  • HTTP: Failed with status code '404 Not Found'
  • HTTPS: Failed with status code '404 Not Found'

To keep the js.org subdomain you should add a page with reasonable content within a month so the subdomain passes the validation.
Failure to rectify the issues will result in the requested subdomain being removed from JS.ORGs DNS and the list of active subdomains.

If you are wanting to keep the js.org subdomain and have added reasonable content, YOU MUST reply to the main cleanup issue with the response format detailed at the top to keep the requested subdomain.

๐Ÿค– Beep boop. I am a robot and performed this action automatically as part of the js.org cleanup process. If you have an issue, please contact the js.org maintainers.

Not working

        return this.getCooldown(member.guild.id).find((c) => c.id === member.id && c.guild === member.guild.id && c.event === event);
                                       ^

TypeError: Cannot read properties of undefined (reading 'guild')

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.