43

I know I can tag a user with <@U423DFDE|username> but I can't figure out how to tag @here

benwiz
  • 2,167
  • 3
  • 22
  • 33

3 Answers3

80

<!here> is the solution. There are other commands that work with the <!___> format.

Check out this part of the official Slack documentation for an overview about all such variables.

benwiz
  • 2,167
  • 3
  • 22
  • 33
14

I use this:

var message= {
    "text": "<!here> test text"
} ;
msahin
  • 1,520
  • 1
  • 16
  • 22
1

For channel use <#idchannel>, for username use <@memberIdName>

You can find it here:

where to find member or channel id

Ruli
  • 2,592
  • 12
  • 30
  • 40