removed ability to send attachments since i think fluxer deletes them from the server when a message is deleted :(

This commit is contained in:
Aster Fialla
2026-02-16 00:11:57 -05:00
parent 49cab523f0
commit b83325785f

View File

@@ -43,13 +43,7 @@ async function replaceMessage(client, message, text, member) {
const channel = client.channels.get(message.channelId);
const webhook = await getOrCreateWebhook(client, channel).catch((e) =>{throw e});
const username = member.displayname ?? member.name;
if (message.attachments.size > 0) {
const embeds = createAttachmentEmbedsForWebhook(webhook, message.attachments);
await webhook.send({username: username, avatar_url: member.propic, embeds: embeds});
}
else {
await webhook.send({content: text, username: username, avatar_url: member.propic});
}
await message.delete();
}
else {