ok i think everything is good now

This commit is contained in:
st committed 2026-06-29 00:45:27 -05:00
1 parent f5ad0ce38f
commit fafdc5de9b
1 file changed
+10 -4
+10 -4
View File
@@ -1037,8 +1037,11 @@ async function sendLockerImageEmbed(message, { title, description, imageBuffer,
: String(title || 'Locker Check');
const embed = new EmbedBuilder()
.setColor(0xcccccc)
.setAuthor(`${displayName} (${author})`)
.setDescription(description)
.setAuthor({
name: `${displayName} (${message.author.username})`,
iconURL: message.author.displayAvatarURL()
})
.setDescription(`**${title}**\n${description}`)
.setImage(`attachment://${fileName}`)
.setFooter({
text: `1-800 @ ${message.guild.name}`,
@@ -2145,7 +2148,7 @@ client.on('messageCreate', async (message) => {
}
//await message.author.send(`Building your full locker (${categories.length} categories)...`);
await message.author.send({
let building_msg = await message.author.send({
content: null, embeds: [{
color: 0xcccccc,
title: '',
@@ -2179,15 +2182,18 @@ client.on('messageCreate', async (message) => {
if (img) {
await sendLockerImageEmbed(message, {
title: `${displayName} - ${cat.label}`,
title: `${cat.label}`,
description: cat.subtitle,
imageBuffer: img,
fileName: `${cat.label.toLowerCase().replace(/\s/g, '_')}.png`,
author: message.author.username,
displayName: displayName
});
}
await new Promise(r => setTimeout(r, 500));
}
building_msg.delete();
} catch (err) {
console.error('locker image error:', err.message);