JSPM

discord-ghost-transcript-v13

1.0.6
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 21
  • Score
    100M100P100Q53736F
  • License ISC

A Message Transcript for Discord Created by GhosterZz_#0001

Package Exports

  • discord-ghost-transcript-v13

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 (discord-ghost-transcript-v13) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Ghost Transcript

Introduction

😊 A easy Transcript Message collector that sends in html format.

Installation

npm i discord-ghost-transcript-v13

Support Server

Options

With Options, you can customize the title, description, date format, date location and the order of messages

Working on Features

Reactions Embeds Downloads Blocks of code File preview for read/write files

Feel free to contribute to this project.

const { fetchTranscript } = require("discord-ghost-transcript-v13");
const { MessageAttachment } = require("discord.js");


//example
const Command = require("../structures/command")
const { fetchTranscript } = require('discord-ghost-transcript-v13');
const Discord = require("discord.js");
module.exports = new Command({
    name: "tscript",
    description: "Sends a message transcript",
    type: "BOTH",
    slashCommandOptions: [],
    permission: "SEND_MESSAGES",
    async run(message){

        console.log()
        fetchTranscript(message, {
            channel: message.channel ,
            numberOfMessages: 20 ,
            inverseArray: true, // order of messages, default is "false"
            dateFormat: "MM/DD/YYYY at HH:mm:ss", // moment date format, default is 'E, d MMM yyyy HH:mm:ss Z'
            dateLocale: "pt-br", // moment locale, default is "en"
            customTitle: `Channel Name: ${message.channel.name}`, // title, default is your guild name
            customDescription: `Channel Description: ${message.channel.topic}`, // description, default is `Transcripted ${numberOfMessages} messages From: ${channel.name}`
        }).then((data) => {
            const file = new Discord.MessageAttachment(data, `${message.channel.name}.html`);
            message.reply({files: [file]});
        });
        
    
    }
});
// it will fetch 5 messages in the current channel with custom options.