mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 07:17:14 +00:00
docs: Adding to the Slack integration examples (#20172)
* docs: Adding to the Slack integration examples I'm proposing two new examples on how to message someone directly in Slack and how to mention (ex. @user) a user in a Slack channel. * doc: Fixing spelling mistake
This commit is contained in:
parent
b45c1c40b8
commit
6c268157ec
@ -172,3 +172,23 @@ data:
|
||||
*Average Rating*
|
||||
1.0
|
||||
```
|
||||
|
||||
Send a message directly to a user by setting the target to their member ID. Here are [instructions](https://www.workast.com/help/articles/61000165203/) to obtain a member ID.
|
||||
|
||||
```yaml
|
||||
message: "Hello there!"
|
||||
target: "U12345"
|
||||
title: "Hi"
|
||||
data:
|
||||
blocks: []
|
||||
```
|
||||
|
||||
Send a message to a channel that mentions (@username, highlights a users name in yellow) a user. Here are [instructions](https://www.workast.com/help/articles/61000165203/) to obtain a member ID.
|
||||
|
||||
```yaml
|
||||
message: "<@U12345> your appointment starts soon"
|
||||
target: "#general"
|
||||
title: "Reminder"
|
||||
data:
|
||||
blocks: []
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user