Discord Chat Importer allows you to import archived chats (JSON/HTML) saved with Discord Chat Exporter into any Discord text channel.
- Import HTML and JSON exports from Discord Chat Exporter
- Webhook-based message importing with author impersonation (profile pictures and names)
- Reply preservation with clickable jump buttons
- Full emoji support:
- Default/Unicode emojis display normally
- Custom emotes appear as text (
:example:) or as the actual emote if available on your server
- File attachments (images, videos, audio, and other files) are uploaded to the server
- Large file handling: files exceeding server size limits can be appended as links instead
- Python 3.10 or higher
- uv (recommended package manager)
- Clone the repository:
git clone https://github.com/Ilirski/DiscordChatImporter.git
cd DiscordChatImporter- Install dependencies with uv:
uv sync- Create a
.envfile with your Discord bot token:
DISCORD_TOKEN=your_bot_token_here
- Run the bot:
uv run python main.py-
Invite the bot to your server with appropriate permissions (Manage Webhooks, Send Messages, Attach Files, Read Message History)
-
Use the import commands to upload your chat exports
Create a .env file in the project root with the following variables:
DISCORD_TOKEN- Your Discord bot token (required)
Contributions are welcome! Please feel free to submit a Pull Request.
This project is open source and available under the MIT License.


