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
Examples
Click here to see JavaScript and TypeScript examples.
Links
Module Creator: badboy-discord
Creator Discord: goose#1046
NodeJS: Click
TypeScript: Click
Support Server: Click
Website: Click