Overview • Usage • Project dependencies • License
Export Discord messages to JSON (message content, author name, and date ; it does not download attachments)
Disclaimer: this is probably very much against Discord's TOS. I am not responsible if you have any issues with Discord after using this program. Use it with knowledge of the consequences it may have, and use it for personal, harmless, non-commercial purposes.
This project requires Java 17 or higher.
Usage: java -jar discord-to-json [options]
Options:
--channel, -c
The Discord channel id, only required if not using URL
--cycles, -C
The number of download cycles, < or = to 0 is infinite
Default: 0
--delay, -d
The time between each download cycle
Default: 5000
--guild, -g
The Discord guild id, only required if not using URL
--help, -h
Print usage
Default: false
--limit, -l
The number of messages downloaded each cycle
Default: 70
--logs, -L
Keep logs to the desired file path. Example: 'logs.txt'
--message, -m
The first message's URL
(https://discord.com/channels/guildId/channelId/messageId)
--messageid, -mid
The first message's id, only required if not using URL
--output, -o
Output file name. Will use {date}.json by default
--replace, -r
Replace output file if already existing
Default: false
--token, -t
Discord token
--tokenFile, -tf
File containing the Discord token
Default: token
--debug, --verbose, -D
Debug/verbose mode
Default: false
--version, -v
Print usage
Default: false
See Maven Dependencies.
Under the MIT license.