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
Modifier and Type Method Description ChatUpdateRequest.ChatUpdateRequestBuilderasUser(Boolean asUser)Pass true to post the message as the authed user, instead of as a bot.ChatUpdateRequest.ChatUpdateRequestBuilderattachments(List<Attachment> attachments)A JSON-based array of structured attachments, presented as a URL-encoded string.ChatUpdateRequest.ChatUpdateRequestBuilderattachmentsAsString(String attachmentsAsString)A JSON-based array of structured attachments, presented as a URL-encoded string.ChatUpdateRequest.ChatUpdateRequestBuilderblocks(List<LayoutBlock> blocks)A JSON-based array of structured blocks, presented as a URL-encoded string.ChatUpdateRequest.ChatUpdateRequestBuilderblocksAsString(String blocksAsString)A JSON-based array of structured blocks as a String, presented as a URL-encoded string.ChatUpdateRequestbuild()ChatUpdateRequest.ChatUpdateRequestBuilderchannel(String channel)Channel, private group, or IM channel to send message to.ChatUpdateRequest.ChatUpdateRequestBuilderlinkNames(boolean linkNames)Find and link channel names and usernames.ChatUpdateRequest.ChatUpdateRequestBuilderparse(String parse)Change how messages are treated.ChatUpdateRequest.ChatUpdateRequestBuildertext(String text)Text of the message to send.ChatUpdateRequest.ChatUpdateRequestBuildertoken(String token)Authentication token.StringtoString()ChatUpdateRequest.ChatUpdateRequestBuilderts(String ts)Timestamp of the message to be updated.ChatUpdateRequest.ChatUpdateRequestBuilderuser(String user)`id` of the user who will receive the ephemeral message.
-
Method Details
-
token
Authentication token. Requires scope: `chat:write`- Returns:
this.
-
channel
Channel, private group, or IM channel to send message to. Can be an encoded ID, or a name.- Returns:
this.
-
ts
Timestamp of the message to be updated.- Returns:
this.
-
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
`id` of the user who will receive the ephemeral message. The user should be in the channel specified by the `channel` argument.- Returns:
this.
-
asUser
Pass true to post the message as the authed user, instead of as a bot. Defaults to false. See [authorship](#authorship) below.NOTE: The default value is intentionally null to support workplace apps.
- Returns:
this.
-
blocks
A JSON-based array of structured blocks, presented as a URL-encoded string.- Returns:
this.
-
blocksAsString
A JSON-based array of structured blocks as a String, presented as a URL-encoded string.- Returns:
this.
-
attachments
A JSON-based array of structured attachments, presented as a URL-encoded string.- Returns:
this.
-
attachmentsAsString
A JSON-based array of structured attachments, presented as a URL-encoded string.- Returns:
this.
-
linkNames
Find and link channel names and usernames.- Returns:
this.
-
parse
Change how messages are treated. Defaults to `none`. See [below](#formatting).- Returns:
this.
-
build
-
toString
-