Class ChatPostEphemeralRequest
java.lang.Object
com.slack.api.methods.request.chat.ChatPostEphemeralRequest
- All Implemented Interfaces:
SlackApiRequest
https://docs.slack.dev/reference/methods/chat.postEphemeral
-
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 IM channel to send message to.Emoji to use as the icon for this message.URL to an image to use as the icon for this message.getParse()Change how messages are treated.getText()Text of the message to send.Provide another message's ts value to post this message in a thread.getToken()Authentication token.getUser()`id` of the user who will receive the ephemeral message.Set your bot's user name.inthashCode()isAsUser()booleanFind and link channel names and usernames.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 IM channel to send message to.voidsetIconEmoji(String iconEmoji) Emoji to use as the icon for this message.voidsetIconUrl(String iconUrl) URL to an image to use as the icon for this message.voidsetLinkNames(boolean linkNames) Find and link channel names and usernames.voidChange how messages are treated.voidText of the message to send.voidsetThreadTs(String threadTs) Provide another message's ts value to post this message in a thread.voidAuthentication token.void`id` of the user who will receive the ephemeral message.voidsetUsername(String username) Set your bot's user name.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 IM channel to send message to. Can be an encoded ID, or a name. -
getText
Text of the message to send. See below for an explanation of [formatting](#formatting). This field is usually required, unless you're providing only `attachments` instead. -
getUser
`id` of the user who will receive the ephemeral message. The user should be in the channel specified by the `channel` argument. -
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. -
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. -
getThreadTs
Provide another message's ts value to post this message in a thread. Avoid using a reply's ts value; use its parent's value instead. Ephemeral messages in threads are only shown if there is already an active thread. -
getIconEmoji
Emoji to use as the icon for this message. Overrides icon_url. Must be used in conjunction with as_user set to false, otherwise ignored. See authorship below. https://docs.slack.dev/reference/methods/chat.postEphemeral#authorship -
getIconUrl
URL to an image to use as the icon for this message. Must be used in conjunction with as_user set to false, otherwise ignored. See authorship below. https://docs.slack.dev/reference/methods/chat.postEphemeral#authorship -
getUsername
Set your bot's user name. Must be used in conjunction with as_user set to false, otherwise ignored. See authorship below. https://docs.slack.dev/reference/methods/chat.postEphemeral#authorship -
isLinkNames
public boolean isLinkNames()Find and link channel names and usernames. -
getParse
Change how messages are treated. Defaults to `none`. See [below](#formatting). -
setToken
Authentication token. Requires scope: `chat:write`- Specified by:
setTokenin interfaceSlackApiRequest
-
setChannel
Channel, private group, or IM channel to send message to. Can be an encoded ID, or a name. -
setText
Text of the message to send. See below for an explanation of [formatting](#formatting). This field is usually required, unless you're providing only `attachments` instead. -
setUser
`id` of the user who will receive the ephemeral message. The user should be in the channel specified by the `channel` argument. -
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. -
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. -
setThreadTs
Provide another message's ts value to post this message in a thread. Avoid using a reply's ts value; use its parent's value instead. Ephemeral messages in threads are only shown if there is already an active thread. -
setIconEmoji
Emoji to use as the icon for this message. Overrides icon_url. Must be used in conjunction with as_user set to false, otherwise ignored. See authorship below. https://docs.slack.dev/reference/methods/chat.postEphemeral#authorship -
setIconUrl
URL to an image to use as the icon for this message. Must be used in conjunction with as_user set to false, otherwise ignored. See authorship below. https://docs.slack.dev/reference/methods/chat.postEphemeral#authorship -
setUsername
Set your bot's user name. Must be used in conjunction with as_user set to false, otherwise ignored. See authorship below. https://docs.slack.dev/reference/methods/chat.postEphemeral#authorship -
setLinkNames
public void setLinkNames(boolean linkNames) Find and link channel names and usernames. -
setParse
Change how messages are treated. Defaults to `none`. See [below](#formatting). -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-