aki017 / slack-ruby-gem

A Ruby wrapper for the Slack API
MIT License
242 stars 79 forks source link

How to pass a new line for multiline? #32

Closed angelacode closed 7 years ago

angelacode commented 9 years ago

Based on the documentation I just need to pass a \n to get a newline.

However when I do it it doesn't generate a new line but just displays te \n.

I tried using the % character as well and same thing: no new line.

dblock commented 9 years ago

Had no trouble doing this with slack-ruby-client. Happy to help there.

client.message channel: channel, text: "Line1\nLine2."