-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathutils.js
More file actions
25 lines (21 loc) · 785 Bytes
/
Copy pathutils.js
File metadata and controls
25 lines (21 loc) · 785 Bytes
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 { EmbedBuilder } = require('discord.js');
function createVouchEmbed(vouch) {
const embed = new EmbedBuilder()
.setTitle("✨ New Vouch!")
.setColor("#5865F2")
.addFields(
{ name: "👤 Customer", value: `<@${vouch.customerId}>`, inline: true },
{ name: "👨💼 Seller", value: `<@${vouch.sellerId}>`, inline: true },
{ name: "📦 Product", value: vouch.product, inline: false },
{ name: "⭐ Rating", value: "⭐".repeat(vouch.stars), inline: true },
{ name: "💬 Feedback", value: vouch.note, inline: false }
)
.setTimestamp();
if (vouch.imageUrl) {
embed.setImage(vouch.imageUrl);
}
return embed;
}
module.exports = {
createVouchEmbed
};