bicybert23 downloadsSync Discord channel messages into your vault as Markdown notes. One note per channel, one heading per message.
An Obsidian plugin that syncs Discord channel messages into your vault as markdown notes.
Discord/general.md contains the whole channel## Username — 2026-01-05 14:32 followed by the message content![[...]]images/, files/)retry_after---
channel: "general"
channel-id: "123456789012345678"
server: "My Server"
synced: 2026-11-14T14:00:00.000Z
---
## alice — 2026-01-04 09:15
Check out this config
![[Discord/attachments/general/images/120938123-image.png]]
## bob — 2026-01-04 09:17
> ↩ **replying to alice:**
> Check out this config
nice, that fixed it for me too
Attachments are stored under the Attachments folder you set in the plugin settings. With both organization options on (the defaults), the layout is:
Discord/attachments/ ← customizable root
└── general/ ← per-channel subfolder (toggleable)
├── images/ ← image attachments (toggleable)
│ └── 120938123-image.png
└── files/ ← PDFs, zips, everything else (toggleable)
└── 120939456-doc.pdf
images/ and files/ based on the attachment's content type. Turn it off to mix everything in one folder.120938123-image.png), so re-syncs never overwrite or duplicate files, even across channels.bot scope, and grant these permissions:Bots don't run locally. A Discord bot is hosted by Discord — once you invite it via the OAuth2 URL it's online and stays up on its own. There's nothing to start or stop from Obsidian. If the bot looks offline in Discord, it means it wasn't invited, was removed, or its token was reset. Use the Invite bot button in the plugin settings to re-open the portal.
npm install
npm run build
Then copy everything in the build/ folder into your vault at .obsidian/plugins/discord-channel-sync/:
build/manifest.jsonbuild/main.jsbuild/main.cssEnable the plugin in Obsidian's Settings → Community plugins.
In the plugin settings:
Optional checks before syncing: Boot verifies the token and server access, and Send test message posts a hello into your first enabled channel (needs the bot's Send Messages permission).
data.json inside the plugin folder — never commit it (it's already in this repo's .gitignore).npm run dev — watch mode buildnpm run build — typecheck + production build (build/ folder)npm run release [patch|minor|major] — bump the version, commit, tag, and push; GitHub Actions then builds and publishes a GitHub release automaticallysrc/: discord.ts (API client), renderer.ts (markdown generation), settings.ts, main.ts (sync logic)The plugin ID changed from discord-to-obsidian to discord-channel-sync in v0.2.0 (required for community store submission — IDs cannot contain "obsidian"). Obsidian treats these as two different plugins:
.obsidian/plugins/discord-channel-sync/).data.json from the old plugin folder into the new one.bicybert/discord-to-obsidian, and it will pull every new GitHub release automatically. Or manually re-copy the build/ files.