Skip to content
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.

cborac/discord-bulk-message-viewer

Repository files navigation

https://sardonyx.me/discord-bulk-message-viewer

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)

Example

Example JSON Structure

[
     {
          "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?"
     }
]

Discord.js example with collection of messages

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)}`)
})

Credits ig

About

This website helps you read the bulk messages easier.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published