Class ChatScheduleMessageRequest.ChatScheduleMessageRequestBuilder
java.lang.Object
com.slack.api.methods.request.chat.ChatScheduleMessageRequest.ChatScheduleMessageRequestBuilder
- Enclosing class:
- ChatScheduleMessageRequest
-
Method Summary
Modifier and TypeMethodDescriptionPass true to post the message as the authed user, instead of as a bot.attachments
(List<Attachment> attachments) A JSON-based array of structured attachments, presented as a URL-encoded string.attachmentsAsString
(String attachmentsAsString) A JSON-based array of structured attachments, presented as a URL-encoded string.blocks
(List<LayoutBlock> blocks) A JSON-based array of structured blocks, presented as a URL-encoded string.blocksAsString
(String blocksAsString) A JSON-based array of structured blocks as a String, presented as a URL-encoded string.build()
Channel, private group, or DM channel to send message to.linkNames
(boolean linkNames) Find and link channel names and usernames.Change how messages are treated.Unix EPOCH timestamp of time in future to send the message.replyBroadcast
(boolean replyBroadcast) Used in conjunction with thread_ts and indicates whether reply should be made visible to everyone in the channel or conversation.Text of the message to send.Provide another message's ts value to make this message a reply.Authentication token.toString()
unfurlLinks
(boolean unfurlLinks) Pass true to enable unfurling of primarily text-based content.unfurlMedia
(boolean unfurlMedia) Pass false to disable unfurling of media content.
-
Method Details
-
token
Authentication token. Requires scope: `chat:write`- Returns:
this
.
-
channel
Channel, private group, or DM channel to send message to. Can be an encoded ID, or a name. See below for more details.- Returns:
this
.
-
postAt
Unix EPOCH timestamp of time in future to send the message.- Returns:
this
.
-
text
Text of the message to send. See below for an explanation of formatting. This field is usually required, unless you're providing only attachments instead. Provide no more than 40,000 characters or risk truncation.- Returns:
this
.
-
asUser
Pass true to post the message as the authed user, instead of as a bot. Defaults to false. See authorship below.- Returns:
this
.
-
attachments
public ChatScheduleMessageRequest.ChatScheduleMessageRequestBuilder attachments(List<Attachment> attachments) A JSON-based array of structured attachments, presented as a URL-encoded string.- Returns:
this
.
-
attachmentsAsString
public ChatScheduleMessageRequest.ChatScheduleMessageRequestBuilder attachmentsAsString(String attachmentsAsString) A JSON-based array of structured attachments, presented as a URL-encoded string.- Returns:
this
.
-
blocks
public ChatScheduleMessageRequest.ChatScheduleMessageRequestBuilder blocks(List<LayoutBlock> blocks) A JSON-based array of structured blocks, presented as a URL-encoded string.- Returns:
this
.
-
blocksAsString
public ChatScheduleMessageRequest.ChatScheduleMessageRequestBuilder blocksAsString(String blocksAsString) A JSON-based array of structured blocks as a String, 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.- Returns:
this
.
-
replyBroadcast
public ChatScheduleMessageRequest.ChatScheduleMessageRequestBuilder replyBroadcast(boolean replyBroadcast) Used in conjunction with thread_ts and indicates whether reply should be made visible to everyone in the channel or conversation. Defaults to false.- Returns:
this
.
-
threadTs
Provide another message's ts value to make this message a reply. Avoid using a reply's ts value; use its parent instead.- Returns:
this
.
-
unfurlLinks
public ChatScheduleMessageRequest.ChatScheduleMessageRequestBuilder unfurlLinks(boolean unfurlLinks) Pass true to enable unfurling of primarily text-based content.- Returns:
this
.
-
unfurlMedia
public ChatScheduleMessageRequest.ChatScheduleMessageRequestBuilder unfurlMedia(boolean unfurlMedia) Pass false to disable unfurling of media content.- Returns:
this
.
-
build
-
toString
-