const Discord = require('discord.js')
exports.run = async (client, message, args) => {
let commandSize = 0
let embed = new Discord.RichEmbed()
.setColor("0x36393E")
if (!args[0]) {
embed.setAuthor("Komut Listesi", message.author.avatarURL)
let commands = client.commands.filter(cs => cs.help.category == 'Kullanıcı')
commands = commands.map(cmd => cmd.help.name)
if (commands.length <= 0) return
commandSize += commands.length
embed.addField('Kullanıcı Komutları', `\`${commands.sort().join("`, `")}\``)
embed.setFooter(`Kullanıcı Komutu Sayısı: ${commandSize}`)
return message.channel.send(embed)
}
}
exports.conf = {
enabled: true,
guildOnly: false,
aliases: ['kullanıcıkomutları', 'kk', 'üye', 'user'],
permLevel: 0
};
exports.help = {
name: 'kullanıcı',
category: 'Kullanıcı',
description: 'Komutlar hakkında bilgi alırsınız.',
usage: 'kullanıcı'
};