Package Exports
- hyperz-transcripts
- hyperz-transcripts/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (hyperz-transcripts) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Hyperz-Transcripts
A simple DiscordJS V13 HTML Transcript NPM Module.
Support
Installation
npm i hyperz-transcripts@latest
Example Code
const Discord = require('discord.js');
const client = new Discord.Client({
intents: ['GUILDS', 'GUILD_MESSAGES', "GUILD_MESSAGE_REACTIONS", "DIRECT_MESSAGES", "GUILD_MEMBERS", "GUILD_BANS", "GUILD_INTEGRATIONS", "GUILD_WEBHOOKS", "GUILD_INVITES", "GUILD_VOICE_STATES", "GUILD_PRESENCES", "GUILD_MESSAGE_TYPING", "DIRECT_MESSAGE_REACTIONS", "DIRECT_MESSAGE_TYPING"],
partials: ["CHANNEL", "MESSAGE", "REACTIONS"],
allowedMentions: { parse: ['users', 'roles', 'everyone'], repliedUser: true }
});
const htc = require('hyperz-transcripts');
const htcore = new htc(false); // Boolean for debug mode
client.on('ready', () => {
console.log(`Logged in as ${client.user.tag}!`);
});
client.on('message', async message => {
if(message.content.startsWith(`!transcript`)) {
let transcriptChannel = await client.channels.cache.get('TRANSCRIPT_LOGS_CHANNEL_ID')
htcore.transcript({ message: message, channel: transcriptChannel });
}
});
client.login('TOKEN_HERE')Credits
- Created by @Hyperz