// Best practice for the built-in help menu
description: 'Bans a member',
// For the correct usage of the command
expectedArgs: '<target> [reason]',
// Who can use this command
// If you provide an incorrect string then WOKCommands will throw an error
// This way you don't have to worry about about typos
permissions: ['ADMINISTRATOR'],
// A ban command should not be used in DMs
// Invoked when the command is actually ran
callback: ({ message, args }) => {
const target = message.mentions.members.first()
content: 'Please tag someone to ban!'
content: 'This bot does not have the ability to ban that user!'
// Get the reason of the ban
// First remove the @ from the args array
const reason = args.join(' ')
// How many days of messages to delete
content: `Banned ${target}!`