Socket
Socket
Sign inDemoInstall

discord-moderation

Package Overview
Dependencies
97
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    discord-moderation

discord-moderation will simplify creating moderation system to your discord bot.


Version published
Weekly downloads
0
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Welcome

Welcome! This 'discord-moderation' module!
This is a module that simplify creating moderation system to your discord bot.

Requirements

  • Node.JS v14
  • Discord.JS v12

Module Classes:

  • 'Moderation' - Main class that enables all the Moderation System.
  • 'MuteHandler' - Class that enables Mute System.
  • 'WarnHandler' - Class that enables Warn System.
  • 'Logger' - Class that logs something.
  • 'Utils' - Class that includes some utils for other classes.

Warning!

To use mute methods, You need to set MuteRole using setMuteRole in Utils#setMuteRole!

Module Options

  • 'storage' - Required for creating, parsing, editing DB File.

Quick Inialization Example

const { Client, Intents } = require('discord.js');
const { Moderation } = require('discord-moderation');

const client = new Client({
  ws: {
    intents: Intents.ALL
  }
});

const moderation = new Moderation(client, {
  storage: './db/db.json'
});

This module uses

  • Discord.JS v12
  • fs
  • ms

Examples

Click here to see JavaScript and TypeScript examples.

Module Creator: badboy-discord
Creator Discord: goose#1046
NodeJS: Click
TypeScript: Click
Support Server: Click
Website: Click

FAQs

Last updated on 09 Aug 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc