Search code examples
slackslack-api

How to link a username in Slack setTopic API


I am using the channels.setTopic API from slack to set the topic of my channel. The topic I'm setting contains a username. Unfortunately, after I make the API call, the topic text does not link the username correctly.

I've already tried to send link_names as true and as 1, but no success.

Help?


Solution

  • Apparantly just putting the username inside <> does the trick, ex: <@username>