public class Slack extends Object
| Modifier and Type | Method and Description |
|---|---|
Slack |
displayName(String user)
Change the display name
|
Slack |
icon(String imageOrIcon)
Change the bot icon
|
void |
push(SlackMessage message)
Publishes messages to Slack Webhook
|
Slack |
sendToChannel(String channel)
Send the message to a particular channel
|
Slack |
sendToUser(String sendToUser)
Send the message to a particular user
|
public Slack(String webhookUrl)
public Slack sendToChannel(String channel)
channel - Channel to sendpublic Slack sendToUser(String sendToUser)
sendToUser - User to sendpublic Slack displayName(String user)
user - Display namepublic Slack icon(String imageOrIcon)
imageOrIcon - Icon Image URL or emoji code from http://www.emoji-cheat-sheet.com/public void push(SlackMessage message) throws IOException
message - Message to sendIOExceptionCopyright © 2015. All rights reserved.