module.exports = {
name: "ban",
usage: "ban <user>",
async execute(message, args , bot) {
console.trace(this);
const target = message.mentions.users.first() ? message.mentions.users.first().id : args[2];
await bot.database.ban(target, "user", "Admin ban");
bot.banCache.user.push(target);
message.channel.send(`<@${target}> has been banned!`);
}
};
И читать доки