Discord Message Sender
approvedby okawak
Send messages from a Discord channel to your Vault
discord_message_sender
Overview
This is a Obsidian plugin that allows you to take notes in Discord and automatically sync them to Obsidian.
Key Features:
- Automatically converts Discord messages into Obsidian Markdown files and saves them
- Automatically clips web page contents from URLs and saves them as Markdown by using
!urlcommand - Can be triggered on Obsidian desktop startup or via the command palette
Usage Flow
-
Prepare Your Discord Environment
- Create a dedicated Discord server for Obsidian integration
- Create a bot and invite it to your server
- Specify the integration channel (using its channel ID)
-
Message Processing
- When you launch Obsidian, the plugin fetches messages from Discord via the API
- Regular messages → Saved as Markdown files, organized by date
- Special commands (messages starting with the prefix) → Processed with custom handlers
- After processing, a completion notification is sent to Discord
⚠️ Notes
- Security: Since this uses the Discord API, avoid sending sensitive or confidential information.
- Supported Environment: Only works with the desktop version of Obsidian.
Setup Guide
1. Create a Discord Bot
- Go to the Discord Developer Portal
- Click New Application to create a new app

- Bot Settings
- Select Bot from the left menu
- Enable Message Content Intent

- Save the bot token (⚠️ Important: Keep it secure)
2. Invite the Bot to Your Server
- Go to OAuth2 → OAuth2 URL Generator in the left menu

- Under Scopes, select
bot - Under Bot Permissions, enable:
- View Channels
- Send Messages
- Read Message History
- Add Reactions
- Use the generated URL to invite your bot
3. Get the Channel ID
- In Discord settings, enable Developer Mode (in Advanced settings)
- Right-click the channel you want to use → Copy Channel ID
4. Required Plugin Settings
Please enter the following information in the plugin settings:
- Bot Token
- Channel ID
Command List
Messages starting with the configured prefix (default: !) are treated as special commands.
!url - Web Page Clipping (under development)
Example:
!url https://www.example.com
Behavior:
- Fetches the contents of the specified URL
- Saves it as a Markdown file
- Save location: Directory specified in the settings (default: DiscordClippings)
Roadmap
Additional useful commands will be added in future releases.
References
This plugin was inspired by the following project(s):
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.