{"size": 1859, "ext": "js", "max_stars_repo_path": "Commands/whois.js", "max_stars_repo_name": "Umut-TAVSANKORU/UTBot", "max_stars_repo_stars_event_min_datetime": "2021-02-13T17:26:02.000Z", "max_stars_repo_stars_event_max_datetime": "2021-02-13T17:26:02.000Z", "max_issues_repo_path": "Commands/whois.js", "max_issues_repo_name": "Umut-TAVSANKORU/UTBot", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Commands/whois.js", "max_forks_repo_name": "Umut-TAVSANKORU/UTBot", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 38.7291666667, "max_line_length": 239, "alphanum_fraction": 0.5777299623}
const Discord = require('discord.js')

module.exports = {
    name: 'whois',
    async run(message, args){
        let mentionedUser = message.mentions.users.first()

        if(!mentionedUser){
            const uEmbed = new Discord.MessageEmbed().setTitle(`Senin hakkında bilgi ${message.member.displayName}`).setColor('#000999').setThumbnail(message.author.displayAvatarURL()).setDescription(message.author.id).addFields({
                name: 'Aslında:',
                value: message.author.tag,
                inline: true
            },{
                name: 'Sunucuya katıldın:',
                value: new Date(message.member.joinedTimestamp).toLocaleDateString(),
                inline: true
            },{
                name: 'Discord seni gördü:',
                value: new Date(message.author.createdTimestamp).toLocaleDateString(),
                inline: true
            })

            message.channel.send(uEmbed)
            return
        }
        let memberName = client.users.cache.get(mentionedUser.id)

        const whoEmbed = new Discord.MessageEmbed().setTitle(`İşte ${memberName.displayName}`).setThumbnail(mentionedUser.displayAvatarURL()).setDescription(`Eğer ihtiyacın varsa ID'si: ${mentionedUser.id}`).setColor('#000999').addFields({
            name: 'Tamamıyla:',
            value: mentionedUser.tag,
            inline: true
        },{
            name: 'Bot mu:',
            value: mentionedUser.bot,
            inline: true
        },{
            name: 'Sunucuya katıldı:',
            value: new Date(mentionedUser.joinedTimestamp).toLocaleDateString(),
            inline: true
        },{
            name: 'Discord hesabını oluşturdu:',
            value: new Date(mentionedUser.createdTimestamp).toLocaleDateString(),
            inline: true
        })

        message.channel.send(whoEmbed)
    }
}