Package com.slack.api.model.event
Class MessageEvent
java.lang.Object
com.slack.api.model.event.MessageEvent
- All Implemented Interfaces:
Event,Serializable
A message is delivered from several sources:
- They are sent via the Real Time Messaging API when a message is sent to a channel to which you subscribe. This message should immediately be displayed in the client. - They are returned via calls to channels.history, im.history or groups.history - They are returned as latest property on channel, group and im objects.
https://docs.slack.dev/reference/events/message
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleangetBotId()getFiles()getTeam()getText()getTs()getType()getUser()inthashCode()voidsetAttachments(List<Attachment> attachments) voidsetBlocks(List<LayoutBlock> blocks) voidvoidsetBotProfile(BotProfile botProfile) voidsetChannel(String channel) voidsetChannelType(String channelType) voidsetClientMsgId(String clientMsgId) voidsetEdited(MessageEvent.Edited edited) voidsetEventTs(String eventTs) voidvoidsetMetadata(Message.Metadata metadata) voidsetParentUserId(String parentUserId) voidvoidvoidsetThreadTs(String threadTs) voidvoidtoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.slack.api.model.event.Event
getSubtype
-
Field Details
-
TYPE_NAME
- See Also:
-
-
Constructor Details
-
MessageEvent
public MessageEvent()
-
-
Method Details
-
getClientMsgId
-
getType
-
getTeam
-
getChannel
-
getUser
-
getBotId
-
getBotProfile
-
getText
-
getBlocks
-
getAttachments
-
getFiles
-
getMetadata
-
getTs
-
getParentUserId
-
getThreadTs
-
getEventTs
-
getChannelType
-
getEdited
-
setClientMsgId
-
setTeam
-
setChannel
-
setUser
-
setBotId
-
setBotProfile
-
setText
-
setBlocks
-
setAttachments
-
setFiles
-
setMetadata
-
setTs
-
setParentUserId
-
setThreadTs
-
setEventTs
-
setChannelType
-
setEdited
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-