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, {
97
97
resolveRole : (roleId : string ) => Awaitable< Role | null >
98
98
},
99
99
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
101
102
});
102
103
```
103
104
104
105
### Providing your own messages
105
106
106
107
``` js
107
108
const attachment = await discordTranscripts .generateFromMessages (messages, channel, {
108
- // Same as createTranscript, except no limit
109
+ // Same as createTranscript, except no limit or filter
109
110
});
110
111
```
111
112
You can’t perform that action at this time.
0 commit comments