From c8a7087e6c6dd5cdd47be92fde0c5ab5d7921175 Mon Sep 17 00:00:00 2001 From: thisisnotfez Date: Wed, 5 Jun 2024 22:06:27 -0700 Subject: [PATCH] Update discord.markdown (#33099) * Update discord.markdown * Update discord.markdown * Update source/_integrations/discord.markdown Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Update source/_integrations/discord.markdown Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Update source/_integrations/discord.markdown Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Update source/_integrations/discord.markdown Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com> --- source/_integrations/discord.markdown | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/source/_integrations/discord.markdown b/source/_integrations/discord.markdown index 2a1da612d6c..f5e2c9476f0 100644 --- a/source/_integrations/discord.markdown +++ b/source/_integrations/discord.markdown @@ -63,7 +63,29 @@ This channel or a user ID has to be used as the target when calling the notifica {% include integrations/config_flow.md %} -When adding the Discord integration you will be asked for an API Key. Enter the hidden **Token** of your bot to link your Discord integration to the bot you created and allow Home Assistant to send messages as that bot. +When adding the Discord integration, you will be asked for an API Key. Enter the hidden **Token** of your bot to link your Discord integration to the bot you created and allow Home Assistant to send messages as that bot. + +## Set Message entry + +The `message` field treats all input as literal text, including quotation marks. + +For example: `message: Hello, world!` will appear exactly as is, while `message: "Hello, world!"` will include the quotation marks in the message. + +## Set Channel IDs as necessary + +The `target` field is for the channel IDs where the message should be sent. Accepted data type is `string` for a single channel or `string[]` for multiple channels. + +For example: `"someChannelID"` or `["someChannelID", "anotherChannelID"]` + +## Pinging users, roles, or linking to other channels in the same server + +You can use standard Discord methods to ping users, roles, and channels within the server. + +| Type | Format | +| --------- | -------------- | +| `User` | `<@userID>` | +| `Role` | `<@&roleID>` | +| `Channel` | `<#channelID>` | ## Discord service data