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

Support slack markdown message #145

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zacscoding
Copy link

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

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
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
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