From 8936aa90a33e1a4d6ee68c84ed12960238b1178f Mon Sep 17 00:00:00 2001 From: Zerls <62802943+ZerlsDev@users.noreply.github.com> Date: Fri, 28 Jun 2024 01:43:25 +0100 Subject: [PATCH 1/2] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b7f5d0c..daf552b 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,8 @@ const attachment = await discordTranscripts.createTranscript(channel, { resolveRole: (roleId: string) => Awaitable }, poweredBy: true, // Whether to include the "Powered by discord-html-transcripts" footer - hydrate: true // Whether to hydrate the html server-side + hydrate: true, // Whether to hydrate the html server-side + filter: (message) => true // Filter messages, e.g. (message) => !message.author.bot }); ``` From ab55b960970c0add15c003d0bcdd4e92cd742cc7 Mon Sep 17 00:00:00 2001 From: Zerls <62802943+ZerlsDev@users.noreply.github.com> Date: Fri, 28 Jun 2024 01:44:03 +0100 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index daf552b..3e7e04a 100644 --- a/README.md +++ b/README.md @@ -106,7 +106,7 @@ const attachment = await discordTranscripts.createTranscript(channel, { ```js const attachment = await discordTranscripts.generateFromMessages(messages, channel, { - // Same as createTranscript, except no limit + // Same as createTranscript, except no limit or filter }); ```