Tool to export Discord messages to a file in Markdown or JSON format. It is intended to be shared via GitHub Gists.
OTHER License
Tool to export Discord messages to a file in Markdown or JSON format. It is intended to be shared via GitHub Gists.
Usages:
DISCORD_TOKEN= discord-export-messages [flags] <channelID> <messageID>
DISCORD_TOKEN= discord-export-messages [flags] <channelID> <messageIDFrom>..<messageIDTo>
Flags:
-file string
output file (default "output")
-md-allow-html
allow HTML in markdown output (default true)
-output value
output mode (md, json) (default md)
[!NOTE] The
DISCORD_TOKEN
environment variable must be set with a valid Discord token to use the tool.
[!WARNING] Using the tool with a user token is against the Discord Terms of Service. You may be banned if you use it with a user token. Use at your own risk.
Diamond – 03/21 08:33 AM
real
plan to out all the EU people
topi – 03/21 08:33 AM
# Ran with:
discord-export-messages --md-allow-html ${CHANNEL_ID} ${MESSAGE_ID[0]}..${MESSAGE_ID[1]}