I'm creating my second Slackbot/Slack Slash Command project and everything's been working fine this far, however I tried retrieving the text that user enters after the initial slash command that triggers the bot but the event.body
gets returned as a string, e.g.
body: 'token=xxx&team_id=xxx&team_domain=xxx&channel_id=xx&channel_name=privategroup&user_id=U92DLDLKB&user_name=j_b&command=%2Fstanduprota&text=dave&....'
In the first bot I created I was able to get event.body.text
without having to do magic with splitting the event.body
string and turning into a key/value pair array.
Any ideas why this might be happening?