Типо я пишу !user @Тег пользователя и сразу удалялось...
module.exports = {
name: "userinfo",
aliases: ["ui"],
description: "Show User Information!",
usage: "Userinfo <Mention User>",
run: async (client, message, args) => {
//Start
message.delete();
let member = message.mentions.users.first() || message.member;
const statuses = {
online: "Online",
dnd: "Do Not Disturb",
idle: "Idle",
offline: "Offline/Invisible"
};
const embed = new MessageEmbed()
.setTitle(member.user.username + " Информация")
.setColor(Color)
.setThumbnail(member.user.displayAvatarURL())
.addField("Имя", member.user.tag, true)
.addField("ID", `${member.id}`, true)
.addField("Статус", statuses[member.presence.status], true)
.addField(
`Роли`,
message.guild.members.cache.get(member.user.id).roles.cache.size ||
"Нету ролей",
true
)
.addField(`Avatar Url`, `[Link](${member.user.displayAvatarURL()})`, true)
.addField("Присоединился", member.joinedAt.toDateString())
.addField("Создан", member.user.createdAt.toDateString())
.setImage('https://media.discordapp.net/attachments/866235754610819082/872733600691392512/userinfo.gif')
.setFooter(`От: ${message.author.username}`)
.setTimestamp();
message.channel.send(embed);
//End
}
};