2022-01-13 00:56:24 +05:00
|
|
|
const Command = require("../../base/Command"),
|
2022-01-04 02:18:28 +05:00
|
|
|
Discord = require("discord.js");
|
|
|
|
|
|
|
|
class Someone extends Command {
|
|
|
|
constructor(client) {
|
|
|
|
super(client, {
|
|
|
|
name: "someone",
|
|
|
|
dirname: __dirname,
|
2022-01-13 18:55:13 +05:00
|
|
|
enabled: false,
|
2022-01-04 02:18:28 +05:00
|
|
|
guildOnly: true,
|
|
|
|
aliases: ["somebody"],
|
|
|
|
memberPermissions: [],
|
|
|
|
botPermissions: ["SEND_MESSAGES", "EMBED_LINKS"],
|
|
|
|
nsfw: false,
|
|
|
|
ownerOnly: false,
|
|
|
|
cooldown: 1000
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
async run(message, args, data) {
|
|
|
|
const member = message.guild.members.cache.random(1)[0];
|
|
|
|
|
|
|
|
const embed = new Discord.MessageEmbed()
|
|
|
|
.addField(message.translate("common:USERNAME"), member.user.username, true)
|
|
|
|
.addField(message.translate("common:DISCRIMINATOR"), member.user.discriminator, true)
|
|
|
|
.addField(message.translate("common:ID"), member.user.id, true)
|
|
|
|
.setThumbnail(member.user.displayAvatarURL({
|
|
|
|
size: 512,
|
|
|
|
dynamic: true,
|
|
|
|
format: "png"
|
|
|
|
}))
|
|
|
|
.setColor(data.config.embed.color);
|
2022-02-13 17:26:12 +05:00
|
|
|
message.reply({
|
2022-01-05 00:24:57 +05:00
|
|
|
embeds: [embed]
|
|
|
|
});
|
2022-01-04 02:18:28 +05:00
|
|
|
}
|
2022-01-13 00:26:23 +05:00
|
|
|
}
|
2022-01-04 02:18:28 +05:00
|
|
|
|
|
|
|
module.exports = Someone;
|