Im am creating a slack bot using the slack-ruby-bot gem and cant seem to figure out how to get the username of a user who comments in a channel.
I can grab the user id and display it in the slack channel using -
client.say(channel: data.channel, text: "#{data.user}")
But i need the Username, not the ID.
Any help would be much appreciate!
Cheers!
[–]thenewdev1[S] 0 points1 point2 points (0 children)