diff --git a/README.md b/README.md index b7f5d0c..3e7e04a 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 }); ``` @@ -105,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 }); ```