darchive

module
v0.0.0-...-addf1bc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2021 License: Unlicense

README

darchive

Discord channel archive format, implemented as a collection of JSON files.

Format

darchive files are simply a tar file compressed with either gzip or zstd. They are made up of the following files:

  • meta.json: contains metadata: archive version, timestamp, a list of channels, and the user who invoked the archiver, if set.
  • guild.json: contains data about the guild the archive was created for: name, ID, icon, channels, and roles.
  • users.json: contains a map of unique ID-user data. These IDs are referenced in the messages.json files.
  • messages-{channelID}.json: contains messages for the channel ID in the filename. These are sorted newest to oldest.

For the structure of these files, look at the structs in the darchive package.

Directories

Path Synopsis
Package arikawa provides functions and types to convert Arikawa types into darchive types, and vice versa.
Package arikawa provides functions and types to convert Arikawa types into darchive types, and vice versa.
cmd
merger
Package main converts a compressed or uncompressed darchive tarball into a single, human-readable JSON file.
Package main converts a compressed or uncompressed darchive tarball into a single, human-readable JSON file.
Package darchive contains type definitions for the darchive format as well as an encoder and decoder for the format.
Package darchive contains type definitions for the darchive format as well as an encoder and decoder for the format.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL