worked on automod
diff --git a/src/premium/attachmentLogs.ts b/src/premium/attachmentLogs.ts
index 628c2ec..078587e 100644
--- a/src/premium/attachmentLogs.ts
+++ b/src/premium/attachmentLogs.ts
@@ -13,7 +13,7 @@
const attachments = [];
for (const attachment of message.attachments.values()) {
attachments.push({
- local: await saveAttachment(attachment.url),
+ local: (await saveAttachment(attachment.url))[0],
url: attachment.url,
height: attachment.height,
width: attachment.width,
@@ -24,7 +24,7 @@
for (const link of links) {
if (link.toLowerCase().match(/\.(jpg|jpeg|png|gif|gifv|webm|webp|mp4|wav|mp3|ogg)$/gi)) {
attachments.push({
- local: await saveAttachment(link),
+ local: (await saveAttachment(link))[0],
url: link,
height: null,
width: null
@@ -70,7 +70,6 @@
],
files: attachments.map((file) => file.local)
});
- // await client.database.guilds.write(interaction.guild.id, {[`tags.${name}`]: value});
client.database.guilds.write(message.guild.id, {
[`logging.attachments.saved.${message.channel.id}${message.id}`]: m.url
});