2.0.9 • Published 1 year ago

discord-transcript v2.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Discord Transcript

  • NPM package that creates a HTML Transcript of a channel messages that can be saved for later use
  • Useful for users that wants to store messages
  • Useful for Tickets

Check out our website dtranscript.cf coming soon.

Install from NPM

$ npm i discord-transcript --save

Usage

  • generate(message, MessageCollection, Channel - Generate Transcript
    • message: Last Message of the channel
    • MessageCollection: Discord.js Collection of Messages | .channel.messages.fetch({limit:number})
    • Channel: Channel object of the channel | .channel
  • getTranscript(msg, id - Get Transcript url
    • msg: Last Message of the channel |
    • id: ID of the channel where the transcript was generated | .channel.id

Examples

const tranascript = require('discord-transcript');
const Discord = require("discord.js");
const client = new Discord.Client();

client.on("message", async(message) => {
let channel = message.channel;


let messagecollection = message.channel.messages.fetch({
limit: 100

});

let link = await transcript.generate(message, messagecollection, channel);

return message.channel.send(link);
});
/*
OUTPUT: 

{
  "url": "https://discord-archive.herokuapp.com/view?id=841050751571853342",
  "id": "841050751571853342",
}
*/

Contributing

Feel free to create any issues and PRs in our github repository if you want to contribute.

© Abdi Hassan, 2020-2021

2.0.9

1 year ago

2.0.8

1 year ago

2.0.7

1 year ago

2.0.6

1 year ago

2.0.5

1 year ago

2.0.3

1 year ago

2.0.2

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.3.3-0

1 year ago

1.3.2

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.1

1 year ago

1.2.0

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.82

1 year ago

1.0.81

1 year ago

1.0.80

1 year ago

1.0.70

1 year ago

1.0.60

1 year ago

1.0.50

1 year ago

1.0.40

1 year ago

1.0.34

1 year ago

1.0.33

1 year ago

1.0.31

1 year ago

1.0.30

1 year ago

1.0.29

1 year ago

1.0.28

1 year ago

1.0.27

1 year ago

1.0.25

1 year ago

1.0.24

1 year ago

1.0.23

1 year ago

1.0.22

1 year ago

1.0.21

1 year ago

1.0.20

1 year ago

1.0.19

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago