Skip to content

Support slack markdown message#145

Open
zacscoding wants to merge 1 commit intorampatra:masterfrom
zacscoding:master
Open

Support slack markdown message#145
zacscoding wants to merge 1 commit intorampatra:masterfrom
zacscoding:master

Conversation

@zacscoding
Copy link
Copy Markdown

added slack markdown message boolean at slack.Bot::reply

protected final void reply(WebSocketSession session, Event event, String text, boolean mrkdwn) {
Message message = new Message(text);
message.setMrkdwn(mrkdwn);
reply(session, event, new Message(text));
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
reply(session, event, new Message(text));
reply(session, event, message);

Should it be passing in the message you build to the reply method?

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, as you have built the message in the previous line, you can directly pass it to reply() method. Also, can you please share me the link to the Slack API documentation which shows the mrkdwn property?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i saw mrkdwn property from this url :)
https://api.slack.com/docs/message-formatting

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

Successfully merging this pull request may close these issues.

3 participants