const DIG = require("discord-image-generation"); const Discord = require('discord.js') module.exports = { name: "delete", aliases: [""], description: ":)", run: async (client, message, args) => { message.delete() const userImage = message.mentions.members.first() || message.guild.members.cache.get(args[0]) || message.author; let avatar = userImage.user.displayAvatarURL({format: 'png' }); let img = await new DIG.Delete().getImage(avatar) let attach = new Discord.MessageAttachment(img, "delete.png");; message.channel.send({attach}) } }