https://sardonyx.me/discord-bulk-message-viewer
Just supply a JSON file within the url or supply it directly on the website.
https://discord-bulk-message-viewer.sardonyx.me?data=ENCODEDURICOMPONENTHERE
Example
or you can use discord attachments
https://sardonyx.me/discord-bulk-message-viewer?channel=(channel id)&attachment=(attachment id)&name=(url encoded attachment name)
[
{
"author_id": "295222772546928641",
"avatar_hash": "2ba235580297f757f3cd4bf188a94385",
"hexcolor": "B99CBA",
"timestamp": 1594744316220,
"author_nickname": "Sardonyx",
"content": "Hello World!"
},
{
"author_id": "295222772546928641",
"avatar_hash": "2ba235580297f757f3cd4bf188a94385",
"hexcolor": "B99CBA",
"timestamp": 1594744316220,
"author_nickname": "Sardonyx",
"content": "I said hello?"
}
]
const arrayofmessages = collectionofmessages.map(m => ({ author_id: m.author.id,avatar_hash: m.author.avatar, hexcolor: m.member.displayHexColor.substr(1), timestamp: m.createdTimestamp, author_nickname: m.member.nickname || m.author.username, content: m.content }))
channel.send('Bulk messages:', new MessageAttachment(Buffer.from(JSON.stringify(arrayofmessages)), 'bulkmsg.json')).then(msg => {
msg.channel.send(`Preview: https://sardonyx.me/discord-bulk-message-viewer?channel=${msg.channel.id}&attachment=${msg.attachments.first().id}&name=${encodeURIComponent(msg.attachments.first().name)}`)
})
- Emojis: Twemoji
- Time: Moment.js
- Markdown: Simple-Markdown