Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I send "@here" with the Slack API?

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

like image 956
benwiz Avatar asked Feb 08 '17 17:02

benwiz


People also ask

How does @here work in Slack?

@everyone notifies every person in the #general channel, @channel notifies all members of a channel, and @here notifies only the active members of a channel. These mentions won't notify people when their notifications are paused, or when they're used in threads.

How do I tag someone on a Slack API?

I simply add <@USER_ID> to slack plugin to mention a user in the message.

How do I add tags to a Slack message?

As you're writing a message, enter the symbol. Enter a member's name, or select one from the list of members. You can repeat this step for every person you'd like to mention in your message. Send your message.

Is there an API for Slack?

The Slack Web API is an interface for querying information from and enacting change in a Slack workspace. Use it on the fly for ad-hoc queries, or as part of a more complex tapestry of platform features in a Slack app.


1 Answers

<!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.

like image 53
benwiz Avatar answered Oct 04 '22 14:10

benwiz