Skip to content

Commit

Permalink
Merge pull request ItzDerock#176 from ZerlsDev/master
Browse files Browse the repository at this point in the history
Updated README
  • Loading branch information
ItzDerock authored Sep 13, 2024
2 parents 68e664c + ab55b96 commit dff1a51
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,16 @@ const attachment = await discordTranscripts.createTranscript(channel, {
resolveRole: (roleId: string) => Awaitable<Role | null>
},
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
});
```

### Providing your own messages

```js
const attachment = await discordTranscripts.generateFromMessages(messages, channel, {
// Same as createTranscript, except no limit
// Same as createTranscript, except no limit or filter
});
```

Expand Down

0 comments on commit dff1a51

Please sign in to comment.