Class ChatScheduleMessageRequest.ChatScheduleMessageRequestBuilder
- java.lang.Object
-
- com.slack.api.methods.request.chat.ChatScheduleMessageRequest.ChatScheduleMessageRequestBuilder
-
- Enclosing class:
- ChatScheduleMessageRequest
public static class ChatScheduleMessageRequest.ChatScheduleMessageRequestBuilder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChatScheduleMessageRequest.ChatScheduleMessageRequestBuilder
asUser(Boolean asUser)
Pass true to post the message as the authed user, instead of as a bot.ChatScheduleMessageRequest.ChatScheduleMessageRequestBuilder
attachments(List<Attachment> attachments)
A JSON-based array of structured attachments, presented as a URL-encoded string.ChatScheduleMessageRequest.ChatScheduleMessageRequestBuilder
attachmentsAsString(String attachmentsAsString)
A JSON-based array of structured attachments, presented as a URL-encoded string.ChatScheduleMessageRequest.ChatScheduleMessageRequestBuilder
blocks(List<LayoutBlock> blocks)
A JSON-based array of structured blocks, presented as a URL-encoded string.ChatScheduleMessageRequest.ChatScheduleMessageRequestBuilder
blocksAsString(String blocksAsString)
A JSON-based array of structured blocks as a String, presented as a URL-encoded string.ChatScheduleMessageRequest
build()
ChatScheduleMessageRequest.ChatScheduleMessageRequestBuilder
channel(String channel)
Channel, private group, or DM channel to send message to.ChatScheduleMessageRequest.ChatScheduleMessageRequestBuilder
linkNames(boolean linkNames)
Find and link channel names and usernames.ChatScheduleMessageRequest.ChatScheduleMessageRequestBuilder
parse(String parse)
Change how messages are treated.ChatScheduleMessageRequest.ChatScheduleMessageRequestBuilder
postAt(Integer postAt)
Unix EPOCH timestamp of time in future to send the message.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.ChatScheduleMessageRequest.ChatScheduleMessageRequestBuilder
text(String text)
Text of the message to send.ChatScheduleMessageRequest.ChatScheduleMessageRequestBuilder
threadTs(String threadTs)
Provide another message's ts value to make this message a reply.ChatScheduleMessageRequest.ChatScheduleMessageRequestBuilder
token(String token)
Authentication token.String
toString()
ChatScheduleMessageRequest.ChatScheduleMessageRequestBuilder
unfurlLinks(boolean unfurlLinks)
Pass true to enable unfurling of primarily text-based content.ChatScheduleMessageRequest.ChatScheduleMessageRequestBuilder
unfurlMedia(boolean unfurlMedia)
Pass false to disable unfurling of media content.
-
-
-
Method Detail
-
token
public ChatScheduleMessageRequest.ChatScheduleMessageRequestBuilder token(String token)
Authentication token. Requires scope: `chat:write`- Returns:
this
.
-
channel
public ChatScheduleMessageRequest.ChatScheduleMessageRequestBuilder channel(String 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
public ChatScheduleMessageRequest.ChatScheduleMessageRequestBuilder postAt(Integer postAt)
Unix EPOCH timestamp of time in future to send the message.- Returns:
this
.
-
text
public ChatScheduleMessageRequest.ChatScheduleMessageRequestBuilder text(String 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
public ChatScheduleMessageRequest.ChatScheduleMessageRequestBuilder asUser(Boolean 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
public ChatScheduleMessageRequest.ChatScheduleMessageRequestBuilder linkNames(boolean linkNames)
Find and link channel names and usernames.- Returns:
this
.
-
parse
public ChatScheduleMessageRequest.ChatScheduleMessageRequestBuilder parse(String 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
public ChatScheduleMessageRequest.ChatScheduleMessageRequestBuilder threadTs(String 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
public ChatScheduleMessageRequest build()
-
-