File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -97,15 +97,16 @@ const attachment = await discordTranscripts.createTranscript(channel, {
9797 resolveRole : (roleId : string ) => Awaitable< Role | null >
9898 },
9999 poweredBy: true , // Whether to include the "Powered by discord-html-transcripts" footer
100- hydrate: true // Whether to hydrate the html server-side
100+ hydrate: true , // Whether to hydrate the html server-side
101+ filter : (message ) => true // Filter messages, e.g. (message) => !message.author.bot
101102});
102103```
103104
104105### Providing your own messages
105106
106107``` js
107108const attachment = await discordTranscripts .generateFromMessages (messages, channel, {
108- // Same as createTranscript, except no limit
109+ // Same as createTranscript, except no limit or filter
109110});
110111```
111112
You can’t perform that action at this time.
0 commit comments