
Security News
MCP Steering Committee Launches Official MCP Registry in Preview
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
discord-transcripts
Advanced tools
Discord Transcripts is a node.js module to generate nice looking HTML transcripts.
const discordTranscripts = require('discord-transcripts');
// or (if using typescript) import * as discordTranscripts from 'discord-transcripts';
const channel = message.channel; // or however you get your TextChannel
// Must be awaited
const attachment = await discordTranscripts.createTranscript(channel);
channel.send({
files: [attachment]
});
const discordTranscripts = require('discord-transcripts');
// or (if using typescript) import * as discordTranscripts from 'discord-transcripts';
const messages = someWayToGetMessages(); // Must be Collection<string, Message> or Message[]
const channel = someWayToGetChannel(); // Used for ticket name, guild icon, and guild name
// You do not need to await this
const attachment = discordTranscripts.generateFromMessages(messages, channel);
channel.send({
files: [attachment]
});
Both methods of generating a transcript allow for an option object as the last parameter.
const attachment = await createTranscript(channel, {
limit: -1, // Max amount of messages to fetch.
returnBuffer: false, // Return a buffer instead of a MessageAttachment
fileName: 'transcript.html' // Only valid with returnBuffer false. Name of attachment.
});
const attachment = await generateFromMessages(messages, channel, {
returnBuffer: false, // Return a buffer instead of a MessageAttachment
fileName: 'transcript.html' // Only valid with returnBuffer false. Name of attachment.
});
FAQs
A nicely formatted html transcript generator for discord.js.
We found that discord-transcripts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.