Class AppMentionEvent

java.lang.Object
com.slack.api.model.event.AppMentionEvent
All Implemented Interfaces:
Event, Serializable

public class AppMentionEvent extends Object implements Event
This app event allows your app to subscribe to message events that directly mention your bot user.

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:
  • Field Details

  • Constructor Details

    • AppMentionEvent

      public AppMentionEvent()
  • Method Details

    • getType

      public String getType()
      Specified by:
      getType in interface Event
    • getClientMsgId

      public String getClientMsgId()
    • getUser

      public String getUser()
    • getUsername

      public String getUsername()
    • getBotId

      public String getBotId()
    • getBotProfile

      public BotProfile getBotProfile()
    • getSubtype

      public String getSubtype()
      Specified by:
      getSubtype in interface Event
    • getText

      public String getText()
    • getBlocks

      public List<LayoutBlock> getBlocks()
    • getAttachments

      public List<Attachment> getAttachments()
    • getTs

      public String getTs()
    • getTeam

      public String getTeam()
    • getChannel

      public String getChannel()
    • getEdited

      public AppMentionEvent.Edited getEdited()
    • getEventTs

      public String getEventTs()
    • getThreadTs

      public String getThreadTs()
    • setClientMsgId

      public void setClientMsgId(String clientMsgId)
    • setUser

      public void setUser(String user)
    • setUsername

      public void setUsername(String username)
    • setBotId

      public void setBotId(String botId)
    • setBotProfile

      public void setBotProfile(BotProfile botProfile)
    • setSubtype

      public void setSubtype(String subtype)
    • setText

      public void setText(String text)
    • setBlocks

      public void setBlocks(List<LayoutBlock> blocks)
    • setAttachments

      public void setAttachments(List<Attachment> attachments)
    • setTs

      public void setTs(String ts)
    • setTeam

      public void setTeam(String team)
    • setChannel

      public void setChannel(String channel)
    • setEdited

      public void setEdited(AppMentionEvent.Edited edited)
    • setEventTs

      public void setEventTs(String eventTs)
    • setThreadTs

      public void setThreadTs(String threadTs)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object