From bc94a5c0a47ab7d6fbcc90139babffc264a1c87e Mon Sep 17 00:00:00 2001 From: TheCodedProf Date: Wed, 18 Jan 2023 18:59:31 -0500 Subject: [PATCH] minor fixes --- src/premium/attachmentLogs.ts | 2 +- src/premium/createTranscript.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/premium/attachmentLogs.ts b/src/premium/attachmentLogs.ts index 8cfe080..156503a 100644 --- a/src/premium/attachmentLogs.ts +++ b/src/premium/attachmentLogs.ts @@ -1,4 +1,4 @@ -import { getCommandMentionByName } from './../utils/getCommandMentionByName'; +import { getCommandMentionByName } from './../utils/getCommandMentionByName.js'; import client from "../utils/client.js"; import keyValueList from "../utils/generateKeyValueList.js"; import singleNotify from "../utils/singleNotify.js"; diff --git a/src/premium/createTranscript.ts b/src/premium/createTranscript.ts index f09ac92..04fdc08 100644 --- a/src/premium/createTranscript.ts +++ b/src/premium/createTranscript.ts @@ -28,7 +28,7 @@ export default async function (interaction: CommandInteraction | MessageComponen const fetched = await (interaction.channel as TextChannel).messages.fetch({ limit: 100 }); const deleted = await (interaction.channel as TextChannel).bulkDelete(fetched, true); deletedCount = deleted.size; - messages = messages.concat(Array.from(deleted.values())); + messages = messages.concat(Array.from(deleted.values() as Iterable)); } while (deletedCount === 100); let out = "";