Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

discord-moderation

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

discord-moderation

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

  • 1.0.17
  • unpublished
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 09 Aug 2021

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc