mirror of
https://github.com/System-End/Discord-Bot.git
synced 2026-04-19 20:55:16 +00:00
15 lines
473 B
JavaScript
15 lines
473 B
JavaScript
const Discord = require('discord.js');
|
|
const pop = require("popcat-wrapper");
|
|
|
|
module.exports = async (client, interaction, args) => {
|
|
|
|
const member = interaction.options.getUser('user');
|
|
|
|
const userAvatar = member.displayAvatarURL({ dynamic: false, size: 1024, format: 'png' });
|
|
|
|
const image = await pop.greyscale(userAvatar);
|
|
let attach = new Discord.AttachmentBuilder(image, { name: "greyscale.png" });
|
|
|
|
interaction.editReply({ files: [attach] })
|
|
}
|
|
|