Welcome
Welcome! This 'discord-moderation' module!
This module that simplify creating moderation system to your discord bot.
Requirements
- Node.JS v16 or above
- Discord.JS v13
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({
intents: ['GUILDS', 'GUILD_MESSAGES', 'GUILD_PRESENCES']
});
const moderation = new Moderation(client, {
storage: './db/db.json'
});
This module uses
Examples
Click here to see JS and TS examples.
Links
Module Creator: badboy-discord
Creator Discord: goose#1046
NodeJS: Click
TypeScript: Click
Support Server: Click
Website: Click