Uses of Class
com.slack.api.model.Attachment.AttachmentBuilder
Packages that use Attachment.AttachmentBuilder
Package
Description
The classes representing the Slack core objects such as conversations, messages, users, blocks, and surfaces.
-
Uses of Attachment.AttachmentBuilder in com.slack.api.model
Methods in com.slack.api.model that return Attachment.AttachmentBuilderModifier and TypeMethodDescriptionActions are defined as an array, and hashes contained within it will be displayed in as buttons in the message attachment.Attachment.AttachmentBuilder.appUnfurlUrl(String appUnfurlUrl) Attachment.AttachmentBuilder.authorIcon(String authorIcon) A valid URL that displays a small 16x16px image to the left of the author_name text.Attachment.AttachmentBuilder.authorLink(String authorLink) A valid URL that will hyperlink the author_name text mentioned above.Attachment.AttachmentBuilder.authorName(String authorName) Small text used to display the author's name.Attachment.AttachmentBuilder.authorSubname(String authorSubname) Attachment.AttachmentBuilder.blocks(List<LayoutBlock> blocks) static Attachment.AttachmentBuilderAttachment.builder()Attachment.AttachmentBuilder.callbackId(String callbackId) This is optional value that specifies callback id when there are buttons.Attachment.AttachmentBuilder.channelName(String channelName) Attachment.AttachmentBuilder.channelTeam(String channelTeam) Like traffic signals, color-coding messages can quickly communicate intent and help separate them from the flow of other messages in the timeline.A plain-text summary of the attachment.Fields are defined as an array, and hashes contained within it will be displayed in a table inside the message attachment.Attachment.AttachmentBuilder.fileAttachment(Boolean fileAttachment) Add some brief text to help contextualize and identify an attachment.Attachment.AttachmentBuilder.footerIcon(String footerIcon) To render a small icon beside your footer text, provide a publicly accessible URL string in the footer_icon field.Attachment.AttachmentBuilder.imageBytes(Integer imageBytes) Attachment.AttachmentBuilder.imageHeight(Integer imageHeight) A valid URL to an image file that will be displayed inside a message attachment.Attachment.AttachmentBuilder.imageWidth(Integer imageWidth) Attachment.AttachmentBuilder.messageBlocks(List<Attachment.MessageBlock> messageBlocks) Attachment.AttachmentBuilder.metadata(Attachment.AttachmentMetadata metadata) By default, message text in attachments are not formatted.Attachment.AttachmentBuilder.msgSubtype(String msgSubtype) NOTE: The following Booleans (is_msg_unfurl, is_reply_unfurl, is_thread_root_unfurl, is_app_unfurl) default to null intentionally to support block attachments.Attachment.AttachmentBuilder.originalUrl(String originalUrl) This is optional text that appears above the message attachment block.Attachment.AttachmentBuilder.preview(Attachment.Preview preview) Attachment.AttachmentBuilder.replyUnfurl(Boolean replyUnfurl) Attachment.AttachmentBuilder.serviceIcon(String serviceIcon) Attachment.AttachmentBuilder.serviceName(String serviceName) Attachment.AttachmentBuilder.serviceUrl(String serviceUrl) This is the main text in a message attachment, and can contain standard message markup (see details below).Attachment.AttachmentBuilder.threadRootUnfurl(Boolean threadRootUnfurl) Attachment.AttachmentBuilder.thumbHeight(Integer thumbHeight) A valid URL to an image file that will be displayed as a thumbnail on the right side of a message attachment.Attachment.AttachmentBuilder.thumbWidth(Integer thumbWidth) The title is displayed as larger, bold text near the top of a message attachment.The title is displayed as larger, bold text near the top of a message attachment.ts (timestamp) Does your attachment relate to something happening at a specific time?Attachment.AttachmentBuilder.videoHtml(Attachment.VideoHtml videoHtml) Attachment.AttachmentBuilder.videoHtmlHeight(Integer videoHtmlHeight) Attachment.AttachmentBuilder.videoHtmlWidth(Integer videoHtmlWidth) Method parameters in com.slack.api.model with type arguments of type Attachment.AttachmentBuilderModifier and TypeMethodDescriptionstatic AttachmentAttachments.attachment(ModelConfigurator<Attachment.AttachmentBuilder> configurator)