Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn @ user mention into link #69

Open
wass3r opened this issue Oct 19, 2018 · 1 comment
Open

Turn @ user mention into link #69

wass3r opened this issue Oct 19, 2018 · 1 comment
Labels
documentation Add to documentation or question about documentation slack slack remote specific

Comments

@wass3r
Copy link
Collaborator

wass3r commented Oct 19, 2018

Detect when @user.name is in format_output and attempt to look up user ID to format as clickable link.

Might need to consider scenario where the user wants to output @... without doing a lookup.

@wass3r wass3r added enhancement New feature or request slack slack remote specific labels Oct 19, 2018
@wass3r
Copy link
Collaborator Author

wass3r commented Jul 21, 2021

fwiw, the format is <@SLACK_ID>, see https://api.slack.com/reference/surfaces/formatting#mentioning-users

so, at least for the user that triggered the message you could throw <@${_user.id}> in format_output and it will turn it into a link (tested on Slack)

for example:

format_output: "yo <@${_user.id}>"

@wass3r wass3r added documentation Add to documentation or question about documentation and removed enhancement New feature or request labels Nov 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Add to documentation or question about documentation slack slack remote specific
Projects
None yet
Development

No branches or pull requests

1 participant