Skip to content

Update Discord integration documentation#44701

Closed
ranarn wants to merge 1 commit intohome-assistant:nextfrom
ranarn:discord-docs-fix
Closed

Update Discord integration documentation#44701
ranarn wants to merge 1 commit intohome-assistant:nextfrom
ranarn:discord-docs-fix

Conversation

@ranarn
Copy link
Copy Markdown

@ranarn ranarn commented Apr 12, 2026

Proposed change

Updates the Discord integration documentation to reflect the rewrite of the integration.

  • Removes legacy notify.discord service and target field documentation
  • Documents the new config subentry flow for adding channels
  • Documents the new discord.send_message action with embeds, file attachments, and URL attachments
  • Updates links from discordapp.com to discord.com

Type of change

  • Added documentation for a new feature I'm adding to Home Assistant (next branch)

Additional information

Companion core PRs:

Checklist

  • This PR uses the next branch

Copilot AI review requested due to automatic review settings April 12, 2026 09:39
@home-assistant home-assistant Bot added has-parent This PR has a parent PR in another repo next This PR goes into the next branch labels Apr 12, 2026
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 12, 2026

Deploy Preview for home-assistant-docs ready!

Name Link
🔨 Latest commit 4639670
🔍 Latest deploy log https://app.netlify.com/projects/home-assistant-docs/deploys/69db68449c91ee00086b35fa
😎 Deploy Preview https://deploy-preview-44701--home-assistant-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates the Discord integration documentation to match the rewritten Home Assistant integration (config flow + per-channel/user notify entities) and the new discord.send_message service capabilities.

Changes:

  • Replaces legacy notify.discord/target documentation with config-flow + “add entry” channel/user entity workflow.
  • Documents discord.send_message fields including attachments (local + URL) and embed structure.
  • Updates Discord links to discord.com and refreshes examples.

Next, decide what permissions your bot will have within your server. Under the 'Bot' section, select the permissions you want to grant and copy the permissions integer from the bottom field.
1. In the Developer Portal, go to **OAuth2** > **URL Generator**.
2. Under **Scopes**, select `bot`.
3. Under **Bot Permissions**, select at minimum **Send Messages** (and **Attach Files** if you want to send images).
Copy link

Copilot AI Apr 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discord bots generally also need View Channels (and potentially Read Message History) to post into a channel, depending on server/channel permission overrides. The instructions currently claim Send Messages is the minimum, which can lead to a bot that cannot see/post in the target channel. Update the minimum permissions list to include View Channels (and consider mentioning Read Message History as commonly required).

Suggested change
3. Under **Bot Permissions**, select at minimum **Send Messages** (and **Attach Files** if you want to send images).
3. Under **Bot Permissions**, select at minimum **View Channels** and **Send Messages**. **Read Message History** is also commonly required, and select **Attach Files** if you want to send images.

Copilot uses AI. Check for mistakes.
1. Go to **Settings** > **Devices & Services** > **Discord**.
2. Click **Add entry** under your bot.
3. Enter the **Channel or User ID** you copied from Discord.
4. Click **Submit** — Home Assistant will verify the channel exists and create a notification entity for it.
Copy link

Copilot AI Apr 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Step 4 says Home Assistant will verify the channel exists, but this flow also supports user IDs. Adjust wording to reflect both cases (e.g., 'verify the channel or user exists') to avoid confusing users adding a user ID.

Suggested change
4. Click **Submit** — Home Assistant will verify the channel exists and create a notification entity for it.
4. Click **Submit** — Home Assistant will verify the channel or user exists and create a notification entity for it.

Copilot uses AI. Check for mistakes.
target:
entity_id: notify.my_bot_general
data:
message: ""
Copy link

Copilot AI Apr 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The table above marks message as required, but the rich-embed example uses an empty string. If the service enforces a non-empty message (or Discord rejects empty content), this example will fail. Either provide a non-empty message in the example (e.g., a short summary) or clarify in the field docs whether an empty message is acceptable when embed is provided.

Suggested change
message: ""
message: "Home Assistant Alert"

Copilot uses AI. Check for mistakes.
@ranarn ranarn closed this Apr 16, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

has-parent This PR has a parent PR in another repo next This PR goes into the next branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants