A Discord.js system bot that will complete all of your server requirements.
- Build on
Discord.js v13 - Easy to use and customize
- Has a multiple moderation commands
- Used interactionCommands (
'/' commands)
- Node.js v16.6.0 or higher
- Discord.js v13
- Mongodb cluster url in config.js
npm install discord.js@latest
module.exports = {
// Important
name: 'command_name', // Must be string
description: 'command description', // Must be string
category: 'command category', // 'Moderation' or 'Public'
run: async function(client, interaction, args) {
// Code here
}
}module.exports = {
// Important
name: 'command_name', // Must be string
description: 'command description', // Must be string
category: 'command category', // 'Moderation' or 'Public'
// Optional
permissions: {
bot: 'permission', // Must be DiscordPermission
user: 'permission' // Must be DiscordPermission
},
options: [
{
name: 'option_name', // Must be string
description: 'option description', // Must be string
type: 'option type', // Must be commandOptions type
required: true // or false
}
],
// Important
run: async function(client, interaction, args) {
// Code here
}
}