Nomadic People Migration

    hyperz-transcripts

    1.0.3 • Public • Published

    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

    Install

    npm i hyperz-transcripts

    DownloadsWeekly Downloads

    5

    Version

    1.0.3

    License

    ISC

    Unpacked Size

    10.9 kB

    Total Files

    5

    Last publish

    Collaborators

    • hyperz