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:
nick-seward 2021-11-05 22:28:33 -04:00 committed by GitHub
parent b45c1c40b8
commit 6c268157ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: []
```