Skip to content

Tool to export Discord messages to a file in Markdown or JSON format. It is intended to be shared via GitHub Gists.

License

Notifications You must be signed in to change notification settings

diamondburned/discord-export-messages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

discord-export-messages

Tool to export Discord messages to a file in Markdown or JSON format. It is intended to be shared via GitHub Gists.

Usage

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.

Example Output

Diamond's avatar Diamond03/21 08:33 AM

real

plan to out all the EU people

topi's avatar topi03/21 08:33 AM

:BocchiHide:
# Ran with:
discord-export-messages --md-allow-html ${CHANNEL_ID} ${MESSAGE_ID[0]}..${MESSAGE_ID[1]}

About

Tool to export Discord messages to a file in Markdown or JSON format. It is intended to be shared via GitHub Gists.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages