| Modifier and Type | Method and Description |
|---|---|
Payload.PayloadBuilder |
attachments(List<Attachment> attachments)
An array of legacy secondary attachments.
|
Payload.PayloadBuilder |
blocks(List<LayoutBlock> blocks)
An array of
layout blocks in the same format as described in the
layout block guide. |
Payload |
build() |
Payload.PayloadBuilder |
channel(String channel)
Deprecated.
|
Payload.PayloadBuilder |
iconEmoji(String iconEmoji)
Deprecated.
|
Payload.PayloadBuilder |
iconUrl(String iconUrl)
Deprecated.
|
Payload.PayloadBuilder |
text(String text)
The first step is to prepare this message as a key/value pair in JSON.
|
Payload.PayloadBuilder |
threadTs(String threadTs)
You can add the thread_ts parameter to your POST request
in order to make your message appear as a reply in a thread.
|
String |
toString() |
Payload.PayloadBuilder |
username(String username)
Deprecated.
|
public Payload.PayloadBuilder threadTs(String threadTs)
public Payload.PayloadBuilder text(String text)
@Deprecated public Payload.PayloadBuilder channel(String channel)
Incoming webhooks output to a default channel and can only send messages to a single channel at a time. You can override a custom integration's configured channel by specifying the channel field in your JSON payload.
Specify a Slack channel by name with "channel": "#other-channel", or send a Slackbot message to a specific user with "channel": "@username".
@Deprecated public Payload.PayloadBuilder username(String username)
Incoming webhooks originate from a default identity you configured when originally creating your webhook. You can override a custom integration's configured name with the username field in your JSON payload.
@Deprecated public Payload.PayloadBuilder iconUrl(String iconUrl)
You can also override the bot icon either with icon_url or icon_emoji.
@Deprecated public Payload.PayloadBuilder iconEmoji(String iconEmoji)
You can also override the bot icon either with icon_url or icon_emoji.
public Payload.PayloadBuilder blocks(List<LayoutBlock> blocks)
layout blocks in the same format as described in the
layout block guide.public Payload.PayloadBuilder attachments(List<Attachment> attachments)
blocks instead.public Payload build()
Copyright © 2020. All rights reserved.