Skip to content

Itz-Hyperz/hyperz-transcripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A simple DiscordJS V13 HTML Transcript NPM Module.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published