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 ChatUnfurlRequestbuild()ChatUnfurlRequest.ChatUnfurlRequestBuilderchannel(String channel)Channel ID of the messageChatUnfurlRequest.ChatUnfurlRequestBuilderrawUnfurls(String rawUnfurls)URL-encoded JSON map with keys set to URLs featured in the message, pointing to their unfurl message attachments.ChatUnfurlRequest.ChatUnfurlRequestBuildertoken(String token)Authentication token.StringtoString()ChatUnfurlRequest.ChatUnfurlRequestBuilderts(String ts)Timestamp of the message to add unfurl behavior to.ChatUnfurlRequest.ChatUnfurlRequestBuilderunfurls(Map<String,ChatUnfurlRequest.UnfurlDetail> unfurls)ChatUnfurlRequest.ChatUnfurlRequestBuilderuserAuthBlocks(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.ChatUnfurlRequestBuilderuserAuthMessage(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.ChatUnfurlRequestBuilderuserAuthRequired(boolean userAuthRequired)Set to `true` or `1` to indicate the user must install your Slack app to trigger unfurls for this domainChatUnfurlRequest.ChatUnfurlRequestBuilderuserAuthUrl(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.
-
build
-
toString
-