Export a channel to a file
/export saves the messages of one channel, thread, or forum post as ZIP files.
Pippin sends the files to your Discord DMs, in parts of up to 19 MiB.
Open a file in a browser to read it, or use its JSON file in your own tools.
Pippin never posts anything in the channel. Only you see its replies.
Before you start
Pippin must be able to send you a DM. Before it starts an export, Pippin sends you a short DM: “Export of #channel started. I will send the file here in parts.” If that DM fails, Pippin does not start the export and shows this error:
Pippin cannot send you a DM. Allow direct messages from this server’s members (Server menu → Privacy Settings), then run /export start again.
Start an export
Run /export start and set its options:
| Option | What it does |
|---|---|
channel | Optional. The text channel, announcement channel, thread, or forum post to export. The default is the channel you run the command in. For a forum or media channel, choose one post. |
from | Optional. A message link. The export starts at this message. |
to | Optional. A message link. The export ends at this message. |
media | True or False. The default is True. Downloads attachments and avatars into the file. |
from and to must link to messages in the chosen channel. from must come before to.
Without them, Pippin exports the full history.
Only one export runs at a time in a server.
Follow the export
After you start, Pippin shows a status screen with Refresh and Cancel. Cancel shows only while the export runs. The screen shows one of these states:
- Running, with the parts and messages sent so far.
- Done. The parts are in your DMs.
- Cancelled.
- Failed, with the reason and the
from:link to continue.
Run /export status to see your latest export in this server.
Get the files
Pippin sends each part as one DM message: “Part N · messages (first link) to (last link)“. The links go to the first and last message in that part. When the export ends, Pippin sends “Export finished: N messages in K parts.”
Pippin sends the files only to your DMs. There is no download link, no public archive, and no permanent page. The files stay in your DMs like any other file Discord holds. Pippin keeps no copy.
If you close your DMs during an export, the export fails with “Pippin can no longer DM you”. If you lose access to the channel during an export, it fails and Pippin sends no more parts. The parts you already got stay in your DMs.
If Pippin restarts at the wrong moment, you can get the same part twice. You pay for it once.
What is in a part
Each part is a complete ZIP file. You can open it without the other parts. It holds:
index.html: the messages in a dark theme like Discord. It works offline and uses no JavaScript. A long part splits intopage-2.html,page-3.html, and so on, with 1,000 messages per page and next and previous links.messages.json: the same messages for tools. The schema is stable and documented, withschema_version: 1. IDs are strings. The header gives the part number and the first and last message ids of the part.media/: attachments and avatars, whenmediaisTrue.
Each message keeps:
- The original timestamp and edited time.
- The author’s name and avatar.
- The content, replies, and reaction counts.
- Embeds, as text and links.
- Pins, stickers by name, and system messages.
Custom emoji, stickers, and embed images stay as links to Discord. If Pippin cannot download a file (it was deleted, its link expired, or it is larger than one part), the HTML and JSON mark it as unavailable and keep its link. The export does not fail for it.
Limits
- One part holds up to 19 MiB. Discord accepts files of up to 20 MiB in a DM.
- One export holds up to 250,000 messages and up to 50 parts.
- When an export stops at a limit, or when the server runs out of moves, the last DM says where it stopped.
It gives the link to the next message. To export the rest, run
/export startagain with that link asfrom. If Pippin does not know the next message, it gives the link to the last message it sent. That message then appears in both exports. The status screen always gives the last message sent. - Direct messages and group DMs cannot be exported. Bots cannot read them. For your own DM history, request your Discord data package.
Cost
An export costs 1 move per 100 messages delivered, rounded up across the whole export, on every plan. The server pays as each part is sent. If you cancel, or the export fails, the parts you already got stay in your DMs and stay paid. Nothing more is charged.
A server with 0 moves cannot start an export. If your server has a monthly limit, the export reads only as many messages as the balance pays for at the start. That is the balance Ă— 100 messages.
Permissions
You need Manage Messages, View Channel, and Read Message History in the channel. Administrator also works. To export a private thread, you must already be able to see it. Discord hides the command from members without Manage Messages.
Pippin needs View Channel and Read Message History in the channel. Export needs no new permissions for Pippin.
Privacy
The file contains messages other members wrote. Pippin sends it only to your DMs and keeps no copy. Pippin builds each part in memory and in a temporary file while the export runs, and deletes the temporary file right after it sends the part. See the privacy policy.
Related
For a short walkthrough, see Export Discord chat.