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

Not possible to send multiline messages? #29

Open
mountaindude opened this issue Jan 14, 2016 · 4 comments
Open

Not possible to send multiline messages? #29

mountaindude opened this issue Jan 14, 2016 · 4 comments

Comments

@mountaindude
Copy link

Great little lib, I however fail to send multiline messages.
Setting text to something like "First line\nSecond line" comes out in Slack as "First line/nSecond line"
Looks like there is a mapping from \ to / somewhere... Couldn't find it though - prob missed something obvious..

@sibelius
Copy link

sibelius commented Oct 7, 2016

@xoxco is it possible?

@sibelius
Copy link

sibelius commented Oct 7, 2016

@mountaindude did u find any work around?

@argael
Copy link

argael commented Feb 25, 2017

I've just make a quick test with success.

slack.send({
    text: 'Mister Bruce?\nAre you ready?',
    channel: '#wayne',
    username: 'Alfred',
    icon_emoji: ':alfred:'
});

@joseooortega
Copy link

joseooortega commented Jan 27, 2021

I did it like this:

slack.send({
    text: '${message1}

    ${message2}',
    channel: '#wayne',
    username: 'Alfred',
    icon_emoji: ':alfred:'
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants