Class ChatScheduleMessageRequest
java.lang.Object
com.slack.api.methods.request.chat.ChatScheduleMessageRequest
- All Implemented Interfaces:
SlackApiRequest
https://docs.slack.dev/reference/methods/chat.scheduleMessage
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleanA JSON-based array of structured attachments, presented as a URL-encoded string.A JSON-based array of structured attachments, presented as a URL-encoded string.A JSON-based array of structured blocks, presented as a URL-encoded string.A JSON-based array of structured blocks as a String, presented as a URL-encoded string.Channel, private group, or DM channel to send message to.JSON object with event_type and event_payload fields, presented as a URL-encoded string.JSON object with event_type and event_payload fields, presented as a URL-encoded string.getParse()Change how messages are treated.Unix EPOCH timestamp of time in future to send the message.getText()Text of the message to send.Provide another message's ts value to make this message a reply.getToken()Authentication token.inthashCode()isAsUser()booleanFind and link channel names and usernames.booleanUsed in conjunction with thread_ts and indicates whether reply should be made visible to everyone in the channel or conversation.booleanPass true to enable unfurling of primarily text-based content.booleanPass false to disable unfurling of media content.voidvoidsetAttachments(List<Attachment> attachments) A JSON-based array of structured attachments, presented as a URL-encoded string.voidsetAttachmentsAsString(String attachmentsAsString) A JSON-based array of structured attachments, presented as a URL-encoded string.voidsetBlocks(List<LayoutBlock> blocks) A JSON-based array of structured blocks, presented as a URL-encoded string.voidsetBlocksAsString(String blocksAsString) A JSON-based array of structured blocks as a String, presented as a URL-encoded string.voidsetChannel(String channel) Channel, private group, or DM channel to send message to.voidsetLinkNames(boolean linkNames) Find and link channel names and usernames.voidsetMetadata(Message.Metadata metadata) JSON object with event_type and event_payload fields, presented as a URL-encoded string.voidsetMetadataAsString(String metadataAsString) JSON object with event_type and event_payload fields, presented as a URL-encoded string.voidChange how messages are treated.voidUnix EPOCH timestamp of time in future to send the message.voidsetReplyBroadcast(boolean replyBroadcast) Used in conjunction with thread_ts and indicates whether reply should be made visible to everyone in the channel or conversation.voidText of the message to send.voidsetThreadTs(String threadTs) Provide another message's ts value to make this message a reply.voidAuthentication token.voidsetUnfurlLinks(boolean unfurlLinks) Pass true to enable unfurling of primarily text-based content.voidsetUnfurlMedia(boolean unfurlMedia) Pass false to disable unfurling of media content.toString()
-
Method Details
-
isAsUser
-
setAsUser
-
builder
-
getToken
Authentication token. Requires scope: `chat:write`- Specified by:
getTokenin interfaceSlackApiRequest- Returns:
- token string value or null
-
getChannel
Channel, private group, or DM channel to send message to. Can be an encoded ID, or a name. See below for more details. -
getPostAt
Unix EPOCH timestamp of time in future to send the message. -
getText
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. -
getMetadata
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. -
getMetadataAsString
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. -
getAttachments
A JSON-based array of structured attachments, presented as a URL-encoded string. -
getAttachmentsAsString
A JSON-based array of structured attachments, presented as a URL-encoded string. -
getBlocks
A JSON-based array of structured blocks, presented as a URL-encoded string. -
getBlocksAsString
A JSON-based array of structured blocks as a String, presented as a URL-encoded string. -
isLinkNames
public boolean isLinkNames()Find and link channel names and usernames. -
getParse
Change how messages are treated. Defaults to none. See below. -
isReplyBroadcast
public boolean isReplyBroadcast()Used in conjunction with thread_ts and indicates whether reply should be made visible to everyone in the channel or conversation. Defaults to false. -
getThreadTs
Provide another message's ts value to make this message a reply. Avoid using a reply's ts value; use its parent instead. -
isUnfurlLinks
public boolean isUnfurlLinks()Pass true to enable unfurling of primarily text-based content. -
isUnfurlMedia
public boolean isUnfurlMedia()Pass false to disable unfurling of media content. -
setToken
Authentication token. Requires scope: `chat:write`- Specified by:
setTokenin interfaceSlackApiRequest
-
setChannel
Channel, private group, or DM channel to send message to. Can be an encoded ID, or a name. See below for more details. -
setPostAt
Unix EPOCH timestamp of time in future to send the message. -
setText
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. -
setMetadata
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. -
setMetadataAsString
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. -
setAttachments
A JSON-based array of structured attachments, presented as a URL-encoded string. -
setAttachmentsAsString
A JSON-based array of structured attachments, presented as a URL-encoded string. -
setBlocks
A JSON-based array of structured blocks, presented as a URL-encoded string. -
setBlocksAsString
A JSON-based array of structured blocks as a String, presented as a URL-encoded string. -
setLinkNames
public void setLinkNames(boolean linkNames) Find and link channel names and usernames. -
setParse
Change how messages are treated. Defaults to none. See below. -
setReplyBroadcast
public void setReplyBroadcast(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. -
setThreadTs
Provide another message's ts value to make this message a reply. Avoid using a reply's ts value; use its parent instead. -
setUnfurlLinks
public void setUnfurlLinks(boolean unfurlLinks) Pass true to enable unfurling of primarily text-based content. -
setUnfurlMedia
public void setUnfurlMedia(boolean unfurlMedia) Pass false to disable unfurling of media content. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-