Skip to content

Commit dff1a51

Browse files
authored
Merge pull request #176 from ZerlsDev/master
Updated README
2 parents 68e664c + ab55b96 commit dff1a51

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

+3-2
Original file line numberDiff line numberDiff 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
107108
const 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

0 commit comments

Comments
 (0)