forked from Simpleboy353/REAPER-2.0
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtrash.js
25 lines (23 loc) · 759 Bytes
/
trash.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
const Discord = module.require("discord.js");
module.exports = {
name: "trash",
description: "Another Image Manipulation Command",
botPerms: ["ATTTACH_FILES"],
run: async (client, message, args) => {
const mention = message.mentions.members.first();
if (!mention) {
return message.channel.send("You need to mention Someone");
}
const user1 = message.author;
const avatar1 = user1.displayAvatarURL({ size: 512, format: "png" });
const avatar2 = mention.user.displayAvatarURL({ size: 512, format: "png" });
await message.channel.send({
files: [
{
attachment: `https://api.alexflipnote.dev/trash?face=${avatar1}&trash=${avatar2}`,
name: "file.jpg",
},
],
});
},
};