slack-ruby-client icon indicating copy to clipboard operation
slack-ruby-client copied to clipboard

Automatically transform @here and such into <!here>

Open DiogoRibeiroTalkdesk opened this issue 9 years ago • 5 comments

Is @here supported when sendig messages via 'chat.postMessage'?

Thanks

DiogoRibeiroTalkdesk avatar May 11 '16 13:05 DiogoRibeiroTalkdesk

That's more of a slack question, but I don't see why not. I would try to see what a bot receives when someone posts @here on a channel, maybe it's a well known ID?

dblock avatar May 11 '16 16:05 dblock

According to slack api they need to be formated: https://api.slack.com/docs/formatting#variables

DiogoRibeiroTalkdesk avatar May 11 '16 17:05 DiogoRibeiroTalkdesk

Just send <!here> in the text, it will work. I'll close this, reopen if it doesn't.

dblock avatar May 11 '16 18:05 dblock

That was our solution, couldn't this be made by the client itself?

DiogoRibeiroTalkdesk avatar May 12 '16 08:05 DiogoRibeiroTalkdesk

I suppose the client could translate this for you, I'll reopen this issue as a feature request. However this feels a little too much automation for the developer when the client is a wrapper for an API and supposed to remain mostly just that.

dblock avatar May 12 '16 10:05 dblock