@getoeteter/discord-transcripts 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/package.json +9 -10
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @getoeteter/discord-
|
|
1
|
+
# @getoeteter/discord-transcripts
|
|
2
2
|
|
|
3
3
|
Generate standalone HTML transcripts from Discord channels. Works with discord.js v14.
|
|
4
4
|
|
|
@@ -7,9 +7,9 @@ The generated HTML files are completely self-contained — no external dependenc
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
npm install @getoeteter/discord-
|
|
10
|
+
npm install @getoeteter/discord-transcripts
|
|
11
11
|
# or
|
|
12
|
-
pnpm add @getoeteter/discord-
|
|
12
|
+
pnpm add @getoeteter/discord-transcripts
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
Requires `discord.js` ^14.0.0 as a peer dependency.
|
|
@@ -17,7 +17,7 @@ Requires `discord.js` ^14.0.0 as a peer dependency.
|
|
|
17
17
|
## Quick Start
|
|
18
18
|
|
|
19
19
|
```typescript
|
|
20
|
-
import { createTranscript } from "@getoeteter/discord-
|
|
20
|
+
import { createTranscript } from "@getoeteter/discord-transcripts";
|
|
21
21
|
|
|
22
22
|
// inside a slash command or event handler
|
|
23
23
|
const result = await createTranscript(channel, {
|
|
@@ -83,8 +83,8 @@ const result = await createTranscript(channel, {
|
|
|
83
83
|
If you're pulling messages from a database or another source, you can use `generateTranscriptHtml` directly:
|
|
84
84
|
|
|
85
85
|
```typescript
|
|
86
|
-
import { generateTranscriptHtml } from "@getoeteter/discord-
|
|
87
|
-
import type { TranscriptData } from "@getoeteter/discord-
|
|
86
|
+
import { generateTranscriptHtml } from "@getoeteter/discord-transcripts";
|
|
87
|
+
import type { TranscriptData } from "@getoeteter/discord-transcripts";
|
|
88
88
|
|
|
89
89
|
const data: TranscriptData = {
|
|
90
90
|
channel: { id: "123", name: "general", type: 0 },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getoeteter/discord-transcripts",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Discord.js HTML transcript generator",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -13,12 +13,6 @@
|
|
|
13
13
|
"files": [
|
|
14
14
|
"dist"
|
|
15
15
|
],
|
|
16
|
-
"scripts": {
|
|
17
|
-
"build": "tsc && node scripts/obfuscate.mjs",
|
|
18
|
-
"typecheck": "tsc --noEmit",
|
|
19
|
-
"clean": "rm -rf dist",
|
|
20
|
-
"prepublishOnly": "pnpm run clean && pnpm run build"
|
|
21
|
-
},
|
|
22
16
|
"keywords": [
|
|
23
17
|
"discord",
|
|
24
18
|
"transcript",
|
|
@@ -33,12 +27,17 @@
|
|
|
33
27
|
"sanitize-html": "^2.17.1"
|
|
34
28
|
},
|
|
35
29
|
"peerDependencies": {
|
|
36
|
-
"discord.js": "^14.
|
|
30
|
+
"discord.js": "^14.25.1"
|
|
37
31
|
},
|
|
38
32
|
"devDependencies": {
|
|
39
|
-
"@types/node": "^25.
|
|
33
|
+
"@types/node": "^25.5.0",
|
|
40
34
|
"@types/sanitize-html": "^2.16.1",
|
|
41
35
|
"terser": "^5.46.0",
|
|
42
36
|
"typescript": "^5.9.3"
|
|
37
|
+
},
|
|
38
|
+
"scripts": {
|
|
39
|
+
"build": "tsc && node scripts/obfuscate.mjs",
|
|
40
|
+
"typecheck": "tsc --noEmit",
|
|
41
|
+
"clean": "rm -rf dist"
|
|
43
42
|
}
|
|
44
|
-
}
|
|
43
|
+
}
|