Class ChatUnfurlRequest.ChatUnfurlRequestBuilder
java.lang.Object
com.slack.api.methods.request.chat.ChatUnfurlRequest.ChatUnfurlRequestBuilder
- Enclosing class:
- ChatUnfurlRequest
public static class ChatUnfurlRequest.ChatUnfurlRequestBuilder extends Object
-
Method Summary
Modifier and Type Method Description ChatUnfurlRequest
build()
ChatUnfurlRequest.ChatUnfurlRequestBuilder
channel(String channel)
Channel ID of the messageChatUnfurlRequest.ChatUnfurlRequestBuilder
rawUnfurls(String rawUnfurls)
URL-encoded JSON map with keys set to URLs featured in the message, pointing to their unfurl message attachments.ChatUnfurlRequest.ChatUnfurlRequestBuilder
token(String token)
Authentication token.String
toString()
ChatUnfurlRequest.ChatUnfurlRequestBuilder
ts(String ts)
Timestamp of the message to add unfurl behavior to.ChatUnfurlRequest.ChatUnfurlRequestBuilder
unfurlId(String unfurlId)
ChatUnfurlRequest.ChatUnfurlRequestBuilder
unfurls(Map<String,ChatUnfurlRequest.UnfurlDetail> unfurls)
ChatUnfurlRequest.ChatUnfurlRequestBuilder
userAuthBlocks(List<LayoutBlock> userAuthBlocks)
Provide an array of blocks to send as an ephemeral message to the user as invitation to authenticate further and enable full unfurling behaviorChatUnfurlRequest.ChatUnfurlRequestBuilder
userAuthMessage(String userAuthMessage)
Provide a simply-formatted string to send as an ephemeral message to the user as invitation to authenticate further and enable full unfurling behaviorChatUnfurlRequest.ChatUnfurlRequestBuilder
userAuthRequired(boolean userAuthRequired)
Set to `true` or `1` to indicate the user must install your Slack app to trigger unfurls for this domainChatUnfurlRequest.ChatUnfurlRequestBuilder
userAuthUrl(String userAuthUrl)
Send users to this custom URL where they will complete authentication in your app to fully trigger unfurling.
-
Method Details
-
token
Authentication token. Requires scope: `links:write`- Returns:
this
.
-
userAuthMessage
Provide a simply-formatted string to send as an ephemeral message to the user as invitation to authenticate further and enable full unfurling behavior- Returns:
this
.
-
userAuthBlocks
Provide an array of blocks to send as an ephemeral message to the user as invitation to authenticate further and enable full unfurling behavior- Returns:
this
.
-
userAuthRequired
Set to `true` or `1` to indicate the user must install your Slack app to trigger unfurls for this domain- Returns:
this
.
-
rawUnfurls
URL-encoded JSON map with keys set to URLs featured in the message, pointing to their unfurl message attachments.- Returns:
this
.
-
unfurls
public ChatUnfurlRequest.ChatUnfurlRequestBuilder unfurls(Map<String,ChatUnfurlRequest.UnfurlDetail> unfurls) -
ts
Timestamp of the message to add unfurl behavior to.- Returns:
this
.
-
userAuthUrl
Send users to this custom URL where they will complete authentication in your app to fully trigger unfurling. Value should be properly URL-encoded.- Returns:
this
.
-
channel
Channel ID of the message- Returns:
this
.
-
unfurlId
-
build
-
toString
-