Typing in my custom slack bot command to add johndoe
to a group
"/myslashcommand add @johndoe"
translates in my terminal to the following when printing the request.form['txt']:
add @john.doe
From this how do I get the user ID of johndoe
? Or how do I get the user ID of someone in general when someone runs the command to add the display name of a user?
From this Slack post, it seems like the format should be:
/myslashcommand add <@UAZERRANR|john.doe>
How do I get the User ID when someone mentions them in the chat for my slack bot?