Posting @mention to slack channel


(BHARATH MEKA) #1

Hi,

We have a custom output slack plugin which post some alert messages to a slack channel. I would like to prefix the alert message with a "@userid" so that the slack sends an email to the user that he is mentioned in the post. But as of now, if I prefix it with, say "@bharath_meka" , it is not resolving at the slack end as a "mention" but is posted as a static text.

Is there something to do at slack end or can I handle this in my plugin?

Regards,
Bharath


(Magnus B├Ąck) #2

I suppose you'll have to adhere to the Slack API's conventions for linking to users, i.e. say something like <@6AF9884E8|some-user> instead of @some-user.


(BHARATH MEKA) #3

Thanks Magnus. That did the trick.

Regards,
Bharath


(system) #4