const Discord = require("discord.js"); const { MessageEmbed } = require("discord.js"); const { Color } = require("../../config.json"); module.exports = { name: "avatar", aliases: ["icon", "pfp"], category: "fun", description: "Mitglieder-Avatar anzeigen!", usage: "Avatar | ", accessableby: "everyone", run: async (client, message, args) => { //Start let Member = message.mentions.users.first() || message.guild.member(args[0]) || message.author; let embed = new Discord.MessageEmbed() .setColor(Color) .addField( "Links", `[Png](${Member.displayAvatarURL({ format: "png", dynamic: true })}) | [Jpg](${Member.displayAvatarURL({ format: "jpg", dynamic: true })}) | [Webp](${Member.displayAvatarURL({ format: "webp", dynamic: true })})` ) .setImage(Member.displayAvatarURL({ dynamic: true })) .setTimestamp(); message.channel.send(embed); //End } };