Class ChatUpdateRequest.ChatUpdateRequestBuilder
- java.lang.Object
-
- com.slack.api.methods.request.chat.ChatUpdateRequest.ChatUpdateRequestBuilder
-
- Enclosing class:
- ChatUpdateRequest
public static class ChatUpdateRequest.ChatUpdateRequestBuilder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChatUpdateRequest.ChatUpdateRequestBuilder
asUser(Boolean asUser)
Pass true to post the message as the authed user, instead of as a bot.ChatUpdateRequest.ChatUpdateRequestBuilder
attachments(List<Attachment> attachments)
A JSON-based array of structured attachments, presented as a URL-encoded string.ChatUpdateRequest.ChatUpdateRequestBuilder
attachmentsAsString(String attachmentsAsString)
A JSON-based array of structured attachments, presented as a URL-encoded string.ChatUpdateRequest.ChatUpdateRequestBuilder
blocks(List<LayoutBlock> blocks)
A JSON-based array of structured blocks, presented as a URL-encoded string.ChatUpdateRequest.ChatUpdateRequestBuilder
blocksAsString(String blocksAsString)
A JSON-based array of structured blocks as a String, presented as a URL-encoded string.ChatUpdateRequest
build()
ChatUpdateRequest.ChatUpdateRequestBuilder
channel(String channel)
Channel, private group, or IM channel to send message to.ChatUpdateRequest.ChatUpdateRequestBuilder
fileIds(List<String> fileIds)
Array of new file ids that will be sent with this message.ChatUpdateRequest.ChatUpdateRequestBuilder
linkNames(boolean linkNames)
Find and link channel names and usernames.ChatUpdateRequest.ChatUpdateRequestBuilder
metadata(Message.Metadata metadata)
JSON object with event_type and event_payload fields, presented as a URL-encoded string.ChatUpdateRequest.ChatUpdateRequestBuilder
metadataAsString(String metadataAsString)
JSON object with event_type and event_payload fields, presented as a URL-encoded string.ChatUpdateRequest.ChatUpdateRequestBuilder
parse(String parse)
Change how messages are treated.ChatUpdateRequest.ChatUpdateRequestBuilder
replyBroadcast(Boolean replyBroadcast)
Broadcast an existing thread reply to make it visible to everyone in the channel or conversation.ChatUpdateRequest.ChatUpdateRequestBuilder
text(String text)
Text of the message to send.ChatUpdateRequest.ChatUpdateRequestBuilder
token(String token)
Authentication token.String
toString()
ChatUpdateRequest.ChatUpdateRequestBuilder
ts(String ts)
Timestamp of the message to be updated.ChatUpdateRequest.ChatUpdateRequestBuilder
user(String user)
`id` of the user who will receive the ephemeral message.
-
-
-
Method Detail
-
token
public ChatUpdateRequest.ChatUpdateRequestBuilder token(String token)
Authentication token. Requires scope: `chat:write`- Returns:
this
.
-
channel
public ChatUpdateRequest.ChatUpdateRequestBuilder channel(String channel)
Channel, private group, or IM channel to send message to. Can be an encoded ID, or a name.- Returns:
this
.
-
ts
public ChatUpdateRequest.ChatUpdateRequestBuilder ts(String ts)
Timestamp of the message to be updated.- Returns:
this
.
-
text
public ChatUpdateRequest.ChatUpdateRequestBuilder text(String text)
Text of the message to send. See below for an explanation of [formatting](#formatting). This field is usually required, unless you're providing only `attachments` instead.- Returns:
this
.
-
user
public ChatUpdateRequest.ChatUpdateRequestBuilder user(String user)
`id` of the user who will receive the ephemeral message. The user should be in the channel specified by the `channel` argument.- Returns:
this
.
-
replyBroadcast
public ChatUpdateRequest.ChatUpdateRequestBuilder replyBroadcast(Boolean replyBroadcast)
Broadcast an existing thread reply to make it visible to everyone in the channel or conversation.- Returns:
this
.
-
asUser
public ChatUpdateRequest.ChatUpdateRequestBuilder asUser(Boolean asUser)
Pass true to post the message as the authed user, instead of as a bot. Defaults to false. See [authorship](#authorship) below.- Returns:
this
.
-
metadata
public ChatUpdateRequest.ChatUpdateRequestBuilder metadata(Message.Metadata metadata)
JSON object with event_type and event_payload fields, presented as a URL-encoded string. Metadata you post to Slack is accessible to any app or user who is a member of that workspace.- Returns:
this
.
-
metadataAsString
public ChatUpdateRequest.ChatUpdateRequestBuilder metadataAsString(String metadataAsString)
JSON object with event_type and event_payload fields, presented as a URL-encoded string. Metadata you post to Slack is accessible to any app or user who is a member of that workspace.- Returns:
this
.
-
blocks
public ChatUpdateRequest.ChatUpdateRequestBuilder blocks(List<LayoutBlock> blocks)
A JSON-based array of structured blocks, presented as a URL-encoded string.- Returns:
this
.
-
blocksAsString
public ChatUpdateRequest.ChatUpdateRequestBuilder blocksAsString(String blocksAsString)
A JSON-based array of structured blocks as a String, presented as a URL-encoded string.- Returns:
this
.
-
attachments
public ChatUpdateRequest.ChatUpdateRequestBuilder attachments(List<Attachment> attachments)
A JSON-based array of structured attachments, presented as a URL-encoded string.- Returns:
this
.
-
attachmentsAsString
public ChatUpdateRequest.ChatUpdateRequestBuilder attachmentsAsString(String attachmentsAsString)
A JSON-based array of structured attachments, presented as a URL-encoded string.- Returns:
this
.
-
fileIds
public ChatUpdateRequest.ChatUpdateRequestBuilder fileIds(List<String> fileIds)
Array of new file ids that will be sent with this message.- Returns:
this
.
-
linkNames
public ChatUpdateRequest.ChatUpdateRequestBuilder linkNames(boolean linkNames)
Find and link channel names and usernames.- Returns:
this
.
-
parse
public ChatUpdateRequest.ChatUpdateRequestBuilder parse(String parse)
Change how messages are treated. Defaults to `none`. See [below](#formatting).- Returns:
this
.
-
build
public ChatUpdateRequest build()
-
-