From 6c268157ec09b45ff2df4266790f07439d5d10bf Mon Sep 17 00:00:00 2001 From: nick-seward Date: Fri, 5 Nov 2021 22:28:33 -0400 Subject: [PATCH] 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 --- source/_integrations/slack.markdown | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/source/_integrations/slack.markdown b/source/_integrations/slack.markdown index c0373de60a8..01ff56abb80 100644 --- a/source/_integrations/slack.markdown +++ b/source/_integrations/slack.markdown @@ -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: [] +```