Class AppMentionEvent
- All Implemented Interfaces:
Event,Serializable
Your Slack app must have a bot user configured and installed to utilize this event.
Instead of receiving all messages in a channel and having to filter through them for those mentioning your app, as you would when subscribing to message.channels, you'll receive only the messages pertinent to your app.
Messages sent via this subscription arrive as an app_mention event, not as a message as with other message.* event types. However, your app can treat its contents similarly.
Messages sent to your app in direct message conversations are not dispatched via app_mention, whether the app is explicitly mentioned or otherwise. Subscribe to message.im events to receive messages directed to your bot user in direct message conversations.
https://api.slack.com/events/app_mention
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleangetAppId()getBotId()getFiles()getTeam()getText()getTs()getType()getUser()inthashCode()voidvoidsetAttachments(List<Attachment> attachments) voidsetBlocks(List<LayoutBlock> blocks) voidvoidsetBotProfile(BotProfile botProfile) voidsetChannel(String channel) voidsetClientMsgId(String clientMsgId) voidsetDisplayAsBot(Boolean displayAsBot) voidsetEdited(AppMentionEvent.Edited edited) voidsetEventTs(String eventTs) voidvoidsetSubtype(String subtype) voidvoidvoidsetThreadTs(String threadTs) voidvoidvoidvoidsetUsername(String username) toString()
-
Field Details
-
TYPE_NAME
- See Also:
-
-
Constructor Details
-
AppMentionEvent
public AppMentionEvent()
-
-
Method Details
-
getType
-
getClientMsgId
-
getUser
-
getUsername
-
getAppId
-
getBotId
-
getBotProfile
-
getSubtype
- Specified by:
getSubtypein interfaceEvent
-
getText
-
getBlocks
-
getAttachments
-
getFiles
-
getUpload
-
getDisplayAsBot
-
getTs
-
getTeam
-
getChannel
-
getEdited
-
getEventTs
-
getThreadTs
-
setClientMsgId
-
setUser
-
setUsername
-
setAppId
-
setBotId
-
setBotProfile
-
setSubtype
-
setText
-
setBlocks
-
setAttachments
-
setFiles
-
setUpload
-
setDisplayAsBot
-
setTs
-
setTeam
-
setChannel
-
setEdited
-
setEventTs
-
setThreadTs
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-