fixed settings commands, todo's
diff --git a/src/premium/attachmentLogs.ts b/src/premium/attachmentLogs.ts
index 078587e..3c583f2 100644
--- a/src/premium/attachmentLogs.ts
+++ b/src/premium/attachmentLogs.ts
@@ -43,7 +43,7 @@
);
return { files: attachments };
}
- const channelObj = await client.channels.fetch(channel);
+ const channelObj = await message.guild.channels.fetch(channel);
if (!channelObj) {
singleNotify(
"attachmentLogChannelDeleted",
diff --git a/src/premium/createTranscript.ts b/src/premium/createTranscript.ts
index 54b79ea..865089b 100644
--- a/src/premium/createTranscript.ts
+++ b/src/premium/createTranscript.ts
@@ -8,9 +8,7 @@
TextChannel,
ButtonStyle,
User,
- ComponentType,
- APIBaseSelectMenuComponent,
- SelectMenuComponent
+ ComponentType
} from "discord.js";
import EmojiEmbed from "../utils/generateEmojiEmbed.js";
import getEmojiByName from "../utils/getEmojiByName.js";
@@ -54,6 +52,13 @@
}
}
+interface TranscriptAttachment {
+ url: string;
+ filename: string;
+ size: number;
+ log?: string;
+}
+
interface TranscriptMessage {
id: string;
author: TranscriptAuthor;
@@ -63,7 +68,7 @@
editedTimestamp?: number;
createdTimestamp: number;
flags?: string[];
- attachments?: unknown; //FIXME
+ attachments?: TranscriptAttachment[];
stickerURLs?: string[];
referencedMessage?: string | [string, string, string];
}