Work with Chat Messages
The following are Apex classes for the Slack chat
API methods.
Many of these classes enable your Slack app to post a message using the bot token or user token based on the scopes required on the Slack API methods. See Bot Token and User Token Scopes.
Sends a request to delete a message.
Usage
See Slack’s chat.delete method.
ChatDeleteRequest Methods
The following are methods for ChatDeleteRequest
.
builder()
Builds a request object that's used when executing the API call.
Signature
Return Value
Type: Slack.ChatDeleteRequest.Builder
Deletes a message.
Usage
See Slack’s chat.delete method.
ChatDeleteResponse Methods
This class contains standard response methods.
The following are methods for ChatDeleteResponse
.
getChannel()
The channel containing the message to be deleted.
Signature
Return Type
Type: String
getDeprecatedArgument()
Signature
Return Value
Type: String
getTs()
Gets the timestamp of the message to be deleted.
Signature
Return Value
Type: String
setChannel(channel)
Signature
Parameters
channel
Type: String
The channel containing the message to be deleted.
Return Value
Type: void
setDeprecatedArgument(deprecatedArgument)
Signature
Parameters
deprecatedArgument
Type: String
Return Value
Type: void
setTs(ts)
Signature
Parameters
ts
Type: String
Return Value
Type: void
Sends a request to delete a pending scheduled message from the queue.
Usage
See Slack’s chat.deleteScheduledMessage method.
ChatDeleteScheduledMessageRequest Methods
The following are methods for ChatDeleteScheduledMessageRequest
.
builder()
Builds a request object that's used when executing the API call.
Signature
Return Value
Type: Slack.ChatDeleteScheduledMessageRequest.Builder
Contains methods to build an instance of the Slack.ChatDeleteScheduledMessageRequest
class.
A Builder object is obtained by invoking one of the ChatDeleteScheduledMessageRequest.Builder
methods defined by the ChatDeleteScheduledMessageRequest
class.
ChatDeleteScheduledMessageRequest.Builder Methods
The following are methods for ChatDeleteScheduledMessageRequest.Builder
. These methods are optional unless specified otherwise.
build()
Required. Builds an instance of Slack.ChatDeleteScheduledMessageRequest
.
Signature
Return Value
Type: Slack.ChatDeleteScheduledMessageRequest
channel(channel)
Required. The channel that the scheduled message is posting to.
Signature
Parameters
channel
Type: String
Return Value
Type: Slack.ChatDeleteScheduledMessageRequest.Builder
scheduledMessageId(scheduledMessageId)
Required. The ID that's returned from a call to ChatScheduleMessageRequest.
Signature
Parameters
scheduledMessageId
Type: String
Return Value
Type: Slack.ChatDeleteScheduledMessageRequest.Builder
Deletes a pending scheduled message from the queue.
Usage
See Slack’s chat.deleteScheduledMessage method.
ChatDeleteScheduledMessageResponse Methods
This class contains standard response methods.
Sends a request to retrieve a permalink URL.
Usage
See Slack’s chat.getPermalink method.
ChatGetPermalinkRequest Methods
The following are methods for ChatGetPermalinkRequest
.
builder()
Signature
Return Value
Type: Slack.ChatGetPermalinkRequest.Builder
Contains methods to build an instance of the Slack.ChatGetPermalinkRequest
class.
A Builder object is obtained by invoking one of the ChatGetPermalinkRequest.Builder
methods defined by the ChatGetPermalinkRequest
class.
These classes are optional unless specified otherwise.
ChatGetPermalinkRequest.Builder Methods
The following are methods for ChatGetPermalinkRequest.Builder
.
build()
Required. Builds an instance of Slack.ChatGetPermalinkRequest
.
Signature
Return Value
Type: Slack.ChatGetPermalinkRequest
channel(channel)
Required. The ID of the conversation or channel containing the message.
Signature
Parameters
channel
Type: String
Return Value
Type: Slack.ChatGetPermalinkRequest.Builder
messageTs(messageTs)
Required. The message's timestamp value, uniquely identifying it within a channel.
Signature
Parameters
messageTs
Type: String
Return Value
Type: Slack.ChatGetPermalinkRequest.Builder
Retrieves a permalink URL.
Usage
See Slack’s chat.getPermalink method.
ChatGetPermalinkResponse Methods
This class contains standard response methods.
The following are methods for ChatGetPermalinkResponse
.
getChannel()
Signature
Return Value
Type: String
getPermalink()
Signature
Return Value
Type: String
setChannel()
Signature
Parameters
channel
Type: String
Return Value
Type: void
setPermalink()
Signature
Parameters
permalink
Type: String
Return Value
Type: void
Sends a request to share a me message into a channel.
Usage
See Slack’s chat.meMessage method.
Consider using chat:write
scope on the user token only in response to an inciting user action and inform users that a message will be posted on their behalf. See Sending messages as other entities.
ChatMeMessageRequest Methods
The following are methods for ChatMeMessageRequest
.
builder()
Builds a request object that's used when executing the API call.
Signature
Return Value
Type: Slack.ChatMeMessageRequest.Builder
Contains methods to build an instance of the Slack.ChatMeMessageRequest
class.
A Builder object is obtained by invoking one of the ChatMeMessageRequest.Builder
methods defined by the ChatMeMessageRequest
class.
ChatMeMessageRequest.Builder Methods
The following are methods for ChatMeMessageRequest.Builder
.
build()
Required. Builds an instance of Slack.ChatMeMessageRequest
.
Signature
Return Value
Type: Slack.ChatMeMessageRequest
channel(channel)
Required. The ID or name of the channel to send message to, which can be a public channel, private group or IM channel.
Signature
Return Value
Type: Slack.ChatMeMessageRequest.Builder
text(text)
Required. Text of the message to send.
Signature
Parameters
text
Type: String
Return Value
Type: Slack.ChatMeMessageRequest.Builder
Shares a me message into a channel.
Usage
See Slack’s chat.meMessage method.
ChatMeMessageResponse Methods
This class contains standard response methods.
The following are methods for ChatMeMessageResponse
.
getChannel()
The channel ID or name where the me message is shared.
Signature
Return Value
Type: String
getTs()
Gets the timestamp of the me message.
Signature
Return Value
Type: String
setChannel(channel)
Sets the channel ID or name to send the message to, which can be a public or private group or IM channel.
Signature
Return Value
Type: void
setTs(ts)
Sets the timestamp on the me message.
Signature
Parameters
ts
Type: String
Return Value
Type: void
Sends a request to send an ephemeral message to a user in a channel.
Usage
See Slack’s chat.postEphemeral method.
Consider using chat:write
scope on the user token only in response to an inciting user action inform users that a message will be posted on their behalf. See Sending messages as other entities.
ChatPostEphemeralRequest Methods
The following are methods for ChatPostEphemeralRequest
.
builder()
Builds a request object that's used when executing the API call.
Signature
Return Value
Type: Slack.ChatPostEphemeralRequest.Builder
Contains methods to build an instance of the Slack.ChatPostEphemeralRequest
class.
A Builder object is obtained by invoking one of the ChatPostEphemeralRequest.Builder
methods defined by the ChatPostEphemeralRequest
class.
ChatPostEphemeralRequest.Builder Methods
The following are methods for ChatPostEphemeralRequest.Builder
. These methods are optional unless specified otherwise.
attachmentsAsString(attachmentsAsString)
Signature
Parameters
attachmentsAsString
Type: String
Return Value
Type: Slack.ChatPostEphemeralRequest.Builder
build()
Required. Builds an instance of Slack.ChatPostEphemeralRequest
.
Signature
Return Value
Type: Slack.ChatPostEphemeralRequest
channel(channel)
Required. The ID or name of the channel, private group, or IM channel to send message to.
Signature
Parameters
channel
Type: String
Return Value
Type: Slack.ChatPostEphemeralRequest.Builder
iconEmoji(iconEmoji)
The emoji to use the icon for this message. Overrides the icon URL. Use an icon emoji with the chat:write:bot
scope only. Otherwise, this is ignored.
Signature
Parameters
iconEmoji
Type: String
Return Value
Type: Slack.ChatPostEphemeralRequest.Builder
iconUrl(iconUrl)
URL to an image to use as the icon for this message. Use an icon URL with the chat:write:bot
scope only. Otherwise, this is ignored.
Signature
Parameters
iconUrl
Type: String
Return Value
Type: Slack.ChatPostEphemeralRequest.Builder
linkNames(linkNames)
Find and link channel names and usernames.
Signature
Parameters
linkNames
Type: Boolean
Return Value
Type: Slack.ChatPostEphemeralRequest.Builder
parse(parse)
Changes how messages are treated. Defaults to none
. See Formatting.
Signature
Parameters
parse
Type: String
Return Value
Type: Slack.ChatPostEphemeralRequest.Builder
text(text)
Required. Text of the message. See Using text with blocks or attachments.
Signature
Parameters
text
Type: String
Return Value
Type: Slack.ChatPostEphemeralRequest.Builder
threadTs(threadTs)
Signature
Parameters
threadTs
Type: String
Return Value
Type: Slack.ChatPostEphemeralRequest.Builder
user(user)
Required. The ID of the user receiving the ephemeral message. This user belongs in the channel specified by channel(channel)
.
Signature
Parameters
user
Type: String
Return Value
Type: Slack.ChatPostEphemeralRequest.Builder
username(username)
The bot’s username. Must be used with the chat:write:bot
scope.
Signature
Parameters
username
Type: String
Return Value
Type: Slack.ChatPostEphemeralRequest.Builder
viewReference(viewReference)
Signature
Parameters
viewReference
Type: Slack.ViewReference
Return Value
Type: Slack.ChatPostEphemeralRequest.Builder
Sends an ephemeral message to a user in a channel.
Usage
See Slack’s chat.postEphemeral method.
ChatPostEphemeralResponse Methods
This class contains standard response methods.
The following are methods for ChatPostEphemeralResponse
.
Signature
Return Value
Type: String
getMessageTs()
Signature
Return Value
Type: String
setDeprecatedArgument(deprecatedArgument)
Signature
Parameters
deprecatedArgument
Type: String
Return Value
Type: void
setMessageTs(messageTs)
Sets the timestamp on the message.
Signature
Parameters
messageTs
Type: String
Return Value
Type: void
Sends a request to post a message to a channel.
Usage
See Slack’s chat.postMessage method.
In this example, the PostMessage
action runs when a user enters your slash command. The ViewReference
gets the selection
view to display a select menu. When the value on the select menu changes, it calls an Apex slackHomeViewSelectChanged
action that's specified on its onchange definition
key. Finally, the apphome
view is published with the selected value.
The selection
view looks like this.
Changing the value on the select menu calls the slackHomeViewSelectChanged
Apex action, which extends ActionDispatcher.
The apphome
view looks like this.
Consider using chat:write
scope on the user token only in response to an inciting user action and inform users that a message will be posted on their behalf. See Sending messages as other entities.
ChatPostMessageRequest Methods
The following are methods for ChatPostMessageRequest
.
builder()
Signature
Return Value
Type: Slack.ChatPostMessageRequest.Builder
Contains methods to build an instance of the Slack.ChatPostMessageRequest
class.
A Builder object is obtained by invoking one of the ChatPostMessageRequest.Builder
methods defined by the ChatPostMessageRequest
class.
ChatPostMessageRequest.Builder Methods
The following are methods for ChatPostMessageRequest.Builder
. These methods are optional unless specified otherwise.
attachmentsAsString(attachmentsAsString)
Required if text(text)
isn't used. Describes the content of the message. A JSON-based array of structured attachments, presented as a URL-encoded string. If this method is used, text(text)
is fallback text for notifications only.
Signature
Parameters
attachmentsAsString
Type: String
Return Value
Type: Slack.ChatPostMessageRequest.Builder
build()
Required. Builds an instance of Slack.ChatPostMessageRequest
.
Signature
Return Value
Type: Slack.ChatPostMessageRequest
channel(channel)
Required. The ID or name of the channel, private group, or IM channel to send the message to. See Slack's channels usage info.
Signature
Parameters
channel
Type: String
Return Value
Type: Slack.ChatPostMessageRequest.Builder
iconEmoji(iconEmoji)
The emoji to use the icon for this message. Overrides the icon URL. Use an icon emoji with the chat:write:customize
scope only. Otherwise, this is ignored.
Signature
Parameters
iconEmoji
Type: String
Return Value
Type: Slack.ChatPostMessageRequest.Builder
iconUrl(iconUrl)
URL to an image to use as the icon for this message. Use an icon URL with the chat:write:customize
scope only. Otherwise, this is ignored.
Parameters
iconUrl
Type: String
Return Value
Type: Slack.ChatPostMessageRequest.Builder
linkNames(linkNames)
Signature
Parameters
linkNames
Type: Boolean
Return Value
Type: Slack.ChatPostMessageRequest.Builder
mrkdwn(mrkdwn)
Specifies whether Slack markup parsing is enabled. Defaults to enabled (true).
Signature
Parameters
mrkdwn
Type: Boolean
Return Value
Type: Slack.ChatPostMessageRequest.Builder
parse(parse)
Changes how messages are treated. See Formatting messages.
Signature
Parameters
parse
Type: String
Return Value
Type: Slack.ChatPostMessageRequest.Builder
replyBroadcast(replyBroadcast)
Signature
Parameters
replyBroadcast
Type: Boolean
Return Value
Type: Slack.ChatPostMessageRequest.Builder
text(text)
Required only if attachmentsAsString()
isn't used. If attachmentsAsString()
is used, text(text)
is fallback text for notifications only.
Signature
Parameters
text
Type: String
Return Value
Type: Slack.ChatPostMessageRequest.Builder
threadTs(threadTs)
Signature
Parameters
threadTs
Type: String
Return Value
Type: Slack.ChatPostMessageRequest.Builder
unfurlLinks(unfurlLinks)
Signature
Parameters
unfurlLinks
Type: Boolean
Return Value
Type: Slack.ChatPostMessageRequest.Builder
unfurlMedia(unfurlMedia)
Signature
Parameters
unfurlMedia
Type: Boolean
Return Value
Type: Slack.ChatPostMessageRequest.Builder
username(username)
Signature
Parameters
username
Type: String
Return Value
Type: Slack.ChatPostMessageRequest.Builder
viewReference(viewReference)
Signature
Parameters
viewReference
Type: Slack.ViewReference
Return Value
Type: Slack.ChatPostMessageRequest.Builder
Posts a message to a channel.
Usage
See Slack’s chat.postMessage method.
ChatPostMessageResponse Methods
This class contains standard response methods.
The following are methods for ChatPostMessageResponse
.
getChannel()
Gets the ID or name of the channel, private group, or IM channel to send the message to.
Signature
Return Value
Type: String
getDeprecatedArgument()
Signature
Return Value
Type: String
getMessage()
Signature
Return Value
Type: Slack.Message
getResponseMetadata()
Signature
Return Value
Type: Slack.ErrorResponseMetadata
getTs()
Signature
Return Value
Type: String
setChannel(channel)
Signature
Parameters
channel
Type: String
Return Value
Type: void
setDeprecatedArgument(deprecatedArgument)
Signature
Parameters
deprecatedArgument
Type: String
Return Value
Type: void
setMessage(message)
Signature
Parameters
message
Type: Slack.Message
Return Value
Type: void
setResponseMetadata(responseMetadata)
Signature
Parameters
responseMetadata
Type: Slack.ErrorResponseMetadata
Return Value
Type: void
setTs(ts)
Signature
Parameters
ts
Type: String
Return Value
Type: void
Sends a request to return a list of scheduled messages.
Usage
See Slack’s chat.scheduleMessages.list method.
ChatScheduledMessagesListRequest Methods
The following are methods for ChatScheduledMessagesListRequest
.
builder()
Builds a request object that's used when executing the API call.
Signature
Return Value
Type: Slack.ChatScheduledMessagesListRequest.Builder
Contains methods to build an instance of the Slack.ChatScheduledMessagesListRequest
class.
A Builder object is obtained by invoking one of the ChatScheduledMessagesListRequest.Builder
methods defined by the ChatScheduledMessagesListRequest
class.
ChatScheduledMessagesListRequest.Builder Methods
The following are methods for ChatScheduledMessagesListRequest.Builder
. These methods are optional unless specified otherwise.
build()
Required. Builds an instance of Slack.ChatScheduledMessagesListRequest
.
Signature
Return Value
Type: Type: Slack.ChatScheduledMessagesListRequest
channel(channel)
Signature
Parameters
channel
Type: String
Return Value
Type: Slack.ChatScheduledMessagesListRequest.Builder
cursor(cursor)
Signature
Parameters
cursor
Type: String
Return Value
Type: Slack.ChatScheduledMessagesListRequest.Builder
latest(latest)
Signature
Parameters
latest
Type: String
Return Value
Type: Slack.ChatScheduledMessagesListRequest.Builder
limitValue(limitValue)
Signature
Parameters
limitValue
Type: Integer
Return Value
Type: Slack.ChatScheduledMessagesListRequest.Builder
oldest(oldest)
Signature
Parameters
oldest
Type: String
Return Value
Type: Slack.ChatScheduledMessagesListRequest.Builder
teamId(teamId)
Signature
Parameters
teamId
Type: String
Return Value
Type: Slack.ChatScheduledMessagesListRequest.Builder
Returns a list of scheduled messages.
ChatScheduledMessagesListResponse Methods
This class contains standard response methods.
The following are methods for ChatScheduledMessagesListResponse
.
getResponseMetadata()
Signature
Return Value
Type: Slack.ResponseMetadata
getScheduledMessages()
Signature
Return Value
Type: List<Slack.ChatScheduledMessagesListResponse.ScheduledMessage>
setResponseMetadata(responseMetadata()
Signature
Parameters
responseMetadata
Type: Slack.ResponseMetadata
Return Value
Type: void
setScheduledMessages(scheduledMessages)
Signature
Parameters
scheduledMessages
Type: List<Slack.ChatScheduledMessagesListResponse.ScheduledMessage>
Return Value
Type: void
ChatScheduledMessagesListResponse.ScheduledMessage Methods
The following are methods for ChatScheduledMessagesListResponse.ScheduledMessage
.
getChannelId()
Gets the ID of the channel where the scheduled messages are posted to.
Signature
Return Value
Type: String
getDateCreated()
Gets the timestamp of when the scheduled message was created.
Signature
Return Value
Type: Integer
getId()
Gets the ID of the scheduled message.
Signature
Return Value
Type: String
getPostAt()
Gets the timestamp of when the message is to be posted.
Signature
Return Value
Type: Integer
getText()
Gets the content of the message.
Signature
Return Value
Type: String
setChannelId(channelId)
Sets the ID of the channel for which to post the scheduled message.
Signature
Parameters
channelId
Type: String
Return Value
Type: void
setDateCreated(dateCreated)
Sets the timestamp for when the scheduled message was created.
Signature
Parameters
dateCreated
Type: Integer
Return Value
Type: void
setId(id)
Signature
Parameters
id
Type: String
Return Value
Type: void
setPostAt(postAt)
Sets the timestamp for when the message is scheduled to be posted.
Signature
Parameters
postAt
Type: Integer
Return Value
Type: void
setText(text)
Signature
Parameters
text
Type: String
Return Value
Type: void
Sends a request to schedule a message to be sent to a channel.
Usage
See Slack’s chat.scheduleMessage method.
Consider using chat:write
scope on the user token only in response to an inciting user action and inform users that a message will be posted on their behalf. See Sending messages as other entities.
ChatScheduleMessageRequest Methods
The following are methods for ChatScheduleMessageRequest
.
builder()
Builds a request object that's used when executing the API call.
Signature
Return Value
Type: Slack.ChatScheduleMessageRequest.Builder
Contains methods to build an instance of the Slack.ChatScheduleMessageRequest
class.
A Builder object is obtained by invoking one of the ChatScheduleMessageRequest.Builder
methods defined by the ChatScheduleMessageRequest
class.
ChatScheduleMessageRequest.Builder Methods
The following are methods for ChatScheduleMessageRequest.Builder
. These methods are optional unless specified otherwise.
attachmentsAsString(attachmentsAsString)
Signature
Parameters
attachmentsAsString
Type: String
Return Value
Type: Slack.ChatScheduleMessageRequest.Builder
build()
Required. Builds an instance of Slack.ChatScheduleMessageRequest
.
Signature
Return Value
Type: Slack.ChatScheduleMessageRequest
channel(channel)
Required. The ID or name of the channel, private group, or DM channel to send the message to. See Slack's channels usage info.
Signature
Parameters
channel
Type: String
Return Value
Type: Slack.ChatScheduleMessageRequest.Builder
linkNames(linkNames)
Signature
Parameters
linkNames
Type: Boolean
Return Value
Type: Slack.ChatScheduleMessageRequest.Builder
parse(parse)
Changes how messages are treated. See chat.postMessage.
Signature
Parameters
parse
Type: String
Return Value
Type: Slack.ChatScheduleMessageRequest.Builder
setPostAt(postAt)
Required. Sets the Unix EPOCH timestamp for when the message is scheduled to be posted.
Signature
Parameters
postAt
Type: Integer
Return Value
Type: Slack.ChatScheduleMessageRequest.Builder
replyBroadcast(replyBroadcast)
Signature
Parameters
replyBroadcast
Type: Boolean
Return Value
Type: Slack.ChatScheduleMessageRequest.Builder
text(text)
Required. The text for the message. See Slack's text usage info.
Signature
Parameters
text
Type: String
Return Value
Type: Slack.ChatScheduleMessageRequest.Builder
threadTs(threadTs)
Signature
Parameters
threadTs
Type: String
Return Value
Type: Slack.ChatScheduleMessageRequest.Builder
unfurlLinks(unfurlLinks)
Signature
Parameters
unfurlLinks
Type: Boolean
Return Value
Type: Slack.ChatScheduleMessageRequest.Builder
unfurlMedia(unfurlMedia)
Signature
Parameters
unfurlMedia
Type: Boolean
Return Value
Type: Slack.ChatScheduleMessageRequest.Builder
viewReference(viewReference)
Signature
Parameters
viewReference
Type: Slack.ViewReference
Return Value
Type: Slack.ChatScheduleMessageRequest.Builder
Schedules a message to be sent to a channel.
Usage
See Slack’s chat.scheduleMessage method.
ChatScheduleMessageResponse Methods
This class contains standard response methods.
The following are methods for ChatScheduleMessageResponse
.
getChannel()
Signature
Return Value
Type: String
getMessage()
Signature
Return Value
Type: Slack.ChatScheduleMessageResponse.ScheduledMessage
getPostAt()
Signature
Return Value
Type: Integer
getScheduledMessageId()
Signature
Return Value
Type: String
setChannel(channel)
Signature
Parameters
channel
Type: String
Return Value
Type: void
setMessage(message)
Signature
Parameters
message
Type: Slack.ChatScheduleMessageResponse.ScheduledMessage
Return Value
Type: void
setPostAt(postAt)
Signature
Parameters
postAt
Type: Integer
Return Value
Type: void
setScheduledMessageId(scheduledMessageId)
Signature
Parameters
scheduledMessageId
Type: String
Return Value
Type: void
ChatScheduleMessageResponse.ScheduledMessage Methods
The following are methods for ChatScheduleMessageResponse.ScheduledMessage
.
getBotId()
Signature
Return Value
Type: String
getBotProfile()
Signature
Return Value
Type: Slack.BotProfile
getTeam()
Signature
Return Value
Type: String
getText()
Signature
Return Value
Type: String
getType()
Signature
Return Value
Type: String
getUser()
Signature
Return Value
Type: String
setBotId(botId)
Signature
Parameters
botId
Type: String
Return Value
Type: void
setBotProfile(botProfile)
Signature
Parameters
botProfile
Type: Slack.BotProfile
Return Value
Type: void
setTeam(team)
Signature
Parameters
team
Type: String
Return Value
Type: void
setText(text)
Signature
Parameters
text
Type: String
Return Value
Type: void
setType(type)
Signature
Parameters
type
Type: String
Return Value
Type: void
setUser(user)
Signature
Parameters
user
Type: String
Return Value
Type: void
Sends a request to update a message.
Usage
See Slack’s chat.update method.
Consider using chat:write
scope on the user token only in response to an inciting user action and give users a heads up that the message will be updated on their behalf. See Sending messages as other entities.
ChatUpdateRequest Methods
The following are methods for ChatUpdateRequest
.
builder()
Builds a request object that's used when executing the API call.
Signature
Return Value
Type: Slack.ChatUpdateRequest.Builder
Contains methods to build an instance of the Slack.ChatUpdateRequest
class.
A Builder object is obtained by invoking one of the ChatUpdateRequest.Builder
methods defined by the ChatUpdateRequest
class.
ChatUpdateRequest.Builder Methods
The following are methods for ChatUpdateRequest.Builder
. These methods are optional unless specified otherwise.
attachmentsAsString(attachmentsAsString)
Signature
Parameters
attachmentsAsString
Type: String
Return Value
Type: Slack.ChatUpdateRequest.Builder
build()
Required. Builds an instance of Slack.ChatUpdateRequest
.
Signature
Return Value
Type: Slack.ChatUpdateRequest
channel(channel)
Required. The channel containing the message to be updated.
Signature
Parameters
channel
Type: String
Return Value
Type: Slack.ChatUpdateRequest.Builder
linkNames(linkNames)
Signature
Parameters
linkNames
Type: Boolean
Return Value
Type: Slack.ChatUpdateRequest.Builder
parse(parse)
Signature
Parameters
parse
Type: String
Return Value
Type: Slack.ChatUpdateRequest.Builder
text(text)
Signature
Parameters
text
Type: String
Return Value
Type: Slack.ChatUpdateRequest.Builder
ts(ts)
Required. The timestamp of the message to be updated.
Signature
Parameters
ts
Type: String
Return Value
Type: Slack.ChatUpdateRequest.Builder
viewReference(viewReference)
Signature
Parameters
viewReference
Type: Slack.ViewReference
Return Value
Type: Slack.ChatUpdateRequest.Builder
Updates a message.
ChatUpdateResponse Methods
This class contains standard response methods.
The following are methods for ChatUpdateResponse
.
getChannel()
The channel containing the message to be updated.
Signature
Return Type
Type: String
getDeprecatedArgument()
Signature
Return Value
Type: String
getMessage()
Signature
Return Value
Type: Slack.Message
getText()
The text of the message.
Signature
Return Type
Type: String
getTs()
Gets the timestamp of the message to be updated.
Signature
Return Value
Type: String
setChannel(channel)
Signature
Parameters
channel
Type: String
The channel containing the message to be deleted.
Return Value
Type: void
setDeprecatedArgument(deprecatedArgument)
Signature
Parameters
deprecatedArgument
Type: String
Return Value
Type: void
setMessage(message)
Signature
Parameters
message
Type: Slack.Message
Return Value
Type: void
setTs(ts)
Signature
Parameters
ts
Type: String
Return Value
Type: void