ItzDerock / discord-html-transcripts

A node.js library for generating nicely formatted HTML transcripts with discord.js
http://npmjs.org/package/discord-html-transcripts
Apache License 2.0
208 stars 82 forks source link

Please make it compatible with v14 :( #34

Closed wechselgeld closed 2 years ago

wechselgeld commented 2 years ago

I need it, would be so great! Sadly, there's an error when I try to use it. Unhandled promise rejection: DiscordAPIError[50035]: Invalid Form Body before[NUMBER_TYPE_COERCE]: Value "undefined" is not snowflake. at SequentialHandler.runRequest (C:\Users\Felix\OneDrive\Desktop\LSPD\Butler Next Gen\FIB - Nightmare - Recode\node_modules\@discordjs\rest\dist\index.js:679:15) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async SequentialHandler.queueRequest (C:\Users\Felix\OneDrive\Desktop\LSPD\Butler Next Gen\FIB - Nightmare - Recode\node_modules\@discordjs\rest\dist\index.js:482:14) at async MessageManager._fetchMany (C:\Users\Felix\OneDrive\Desktop\LSPD\Butler Next Gen\FIB - Nightmare - Recode\node_modules\discord.js\src\managers\MessageManager.js:226:18) { rawError: { code: 50035, errors: { before: [Object] }, message: 'Invalid Form Body' }, code: 50035, status: 400, method: 'get', url: 'https://discord.com/api/v10/channels/982045634976682084/messages?limit=100&before=undefined', requestBody: { files: undefined, json: undefined } }

ItzDerock commented 2 years ago

I don't have any experience with v14, are you able to create a quick test script? (something like ./tests/generate.ts)

ItzDerock commented 2 years ago

Released in 2.5.6