Discord Webhooks

by Rato Kuzmanić
5
4
3
2
1
Score: 50/100

Description

Use saved Discord webhooks to send selected text or preset messages directly from Obsidian.

Reviews

No reviews yet.

Stats

0
stars
497
downloads
0
forks
125
days
105
days
105
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
38
commits

Latest Version

3 months ago

Changelog

Resolve review feedback

README file from

Github

Discord Webhooks Plugin

Made for Obsidian Code Style: Prettier

Save your Discord webhooks and use them to send selected text from the editor/preview or send preset messages (including rich embeds) to your Discord server.

Features

Add, edit, and delete Discord webhooks for easy reuse—no need to constantly enter webhook URLs.
🎯 Choose a default webhook for sending selected text directly from the editor or preview via the editor menu.
💬 Create, edit, and delete preset messages (including rich embeds) that can be sent through any saved webhook.
Send preset messages via Obsidian commands with one command per message (works great with the Buttons plugin).
🧪 Test your messages using a simple toggle that sends everything to a specified test webhook URL.

How to use

Setting up webhooks

  1. Open the plugin settings.
  2. Click the + icon to create a new webhook.
  3. Create a Discord webhook (see the official guide) and copy its URL.
  4. Name your webhook in the modal window and paste the URL. The name makes it easier to identify (e.g., General for your #general channel).
  5. Click Save.

Choosing a webhook for selected text

  1. Open the plugin settings.
  2. If you haven't added a webhook yet, create one following the steps above.
  3. Select a webhook from the dropdown menu to use when sending selected text.

Note: If you delete the chosen webhook, you'll need to select a new one before sending selected text again.

Setting up messages

  1. Open the plugin settings.
  2. If you haven't added a webhook yet, create one following the steps above.
  3. Click the + icon to create a new message.
  4. Name your message—this name will appear in the command palette.
  5. Select a webhook from the dropdown to send this message's payload.
  6. Provide a JSON payload compatible with Discord's message specification.
    • Tools like Discohook are great for building and previewing JSON.
  7. Click Save.

Warning: If you delete the chosen webhook, the message will be deleted as well.

Sending content to Discord

Sending selected text
  1. Open any note (editor or preview mode).
  2. Select a chunk of text.
  3. Open the editor menu (top right) and choose Share selected text to Discord.
  4. The selected text will be sent as a webhook message.
Sending a saved message
  1. Open the Command Palette.
  2. Choose Discord Webhooks: Send [Message name] message to Discord.
  3. The preset JSON payload will be sent via the selected webhook.

Testing your messages

  1. Open the plugin settings.
  2. Enable Testing Mode.
  3. Enter Test Webhook URL.
  4. Send content to Discord, and it will be sent to the test webhook URL instead of its usual destination.

Note: Test webhook URL is saved with plugin's settings, so you won't have to re-enter it even if you disable and re-enable the testing mode.

Crafted entirely by a human without the use of generative AI.