public static class ChatUpdateRequest.ChatUpdateRequestBuilder extends Object
| Modifier and Type | Method and 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 |
linkNames(boolean linkNames)
Find and link channel names and usernames.
|
ChatUpdateRequest.ChatUpdateRequestBuilder |
parse(String parse)
Change how messages are treated.
|
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.
|
public ChatUpdateRequest.ChatUpdateRequestBuilder token(String token)
public ChatUpdateRequest.ChatUpdateRequestBuilder channel(String channel)
public ChatUpdateRequest.ChatUpdateRequestBuilder ts(String ts)
public ChatUpdateRequest.ChatUpdateRequestBuilder text(String text)
public ChatUpdateRequest.ChatUpdateRequestBuilder user(String user)
public ChatUpdateRequest.ChatUpdateRequestBuilder asUser(Boolean asUser)
NOTE: The default value is intentionally null to support workplace apps.
public ChatUpdateRequest.ChatUpdateRequestBuilder blocks(List<LayoutBlock> blocks)
public ChatUpdateRequest.ChatUpdateRequestBuilder blocksAsString(String blocksAsString)
public ChatUpdateRequest.ChatUpdateRequestBuilder attachments(List<Attachment> attachments)
public ChatUpdateRequest.ChatUpdateRequestBuilder attachmentsAsString(String attachmentsAsString)
public ChatUpdateRequest.ChatUpdateRequestBuilder linkNames(boolean linkNames)
public ChatUpdateRequest.ChatUpdateRequestBuilder parse(String parse)
public ChatUpdateRequest build()
Copyright © 2020. All rights reserved.