Slack.Webhooks icon indicating copy to clipboard operation
Slack.Webhooks copied to clipboard

Cant tag a user with <@userid> this way

Open johnkwaters opened this issue 3 years ago • 2 comments

Shouldn't the text be able to tag users? What's the syntax?

johnkwaters avatar Aug 26 '21 21:08 johnkwaters

Hi, you can find here how to mention users, groups .. https://api.slack.com/reference/surfaces/formatting Example

var slackMessage = new SlackMessage
           {
               Channel = "m_channel",
               Text = "<!here> test",
               IconEmoji = Emoji.Ghost,
               Username = "username"
           };

mouadhtrabelsi avatar Nov 23 '21 09:11 mouadhtrabelsi

@johnkwaters just hit this, did you find a way?

jchannon avatar Nov 08 '23 15:11 jchannon