1.0.1 • Published 3 years ago
discord.js-moderator v1.0.1
What is discord.js-moderator?
- A npm package that makes you add moderation cmds in your bot!
Install the package 📥
npm install discord.js-moderator
Usage 📚
const { purge } = require("discord.js-moderator");
purge({
type: channel, //You can purge a channel or a user. Write user if you want to purge a user
channel: message.channel, //Mention the channel to purge. Dont write this line if you wanna purge a user
user: null,//Do not write this line if you want to purge a channel. Mention the user to purge if you want to purge a user.
num: 10, //Mandatory. The number of messages to purge.
});
Helping Us 🤝
- Suggesting, Reporting bugs, giving us some code will be very helpful.
- To do the things above join our Support Server