Generate beautiful HTML transcripts from Discord text channels using Discord.Js.
Lightweight, customizable and easy to use.
- Generate full HTML transcripts
- Locale & timezone support
- Custom Mustache template support
- Fast message fetching
- Built for Discord.Js
- TypeScript support
npm install @kazami-devs/transcriptsconst { createTranscript } = require('@kazami-devs/transcripts')
const { AttachmentBuilder } = require('discord.js')
const transcript = await createTranscript(channel)
const attachment = new AttachmentBuilder(
Buffer.from(transcript.html, 'utf-8'),
{ name: transcript.fileName }
)
await interaction.reply({
content: 'Transcript created successfully!',
files: [attachment],
})const transcript = await createTranscript(channel, {
guildName: interaction.guild.name,
locale: 'pt-BR',
timezone: 'America/Sao_Paulo',
limit: -1, // fetch all messages
})| Option | Type | Default | Description |
|---|---|---|---|
limit |
number | 100 | Number of messages to fetch (-1 = all) |
guildName |
string | — | Guild name displayed in transcript |
locale |
string | en-US | Date formatting locale |
timezone |
string | UTC | Timezone for timestamps |
{
fileName: string
html: string
}discord.js ^14.0.0
This project is licensed under the MIT license. Feel free to contribute!
Developed with love by Camilla Viana 💜
Pull requests are welcome. If you'd like to suggest improvements, feel free to open an issue.