public class AppMentionEvent extends Object implements Event
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
Constructor and Description |
---|
AppMentionEvent() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
String |
getBotId() |
BotProfile |
getBotProfile() |
String |
getChannel() |
String |
getEventTs() |
String |
getSubtype() |
String |
getTeam() |
String |
getText() |
String |
getThreadTs() |
String |
getTs() |
String |
getType() |
String |
getUser() |
String |
getUsername() |
int |
hashCode() |
void |
setBotId(String botId) |
void |
setBotProfile(BotProfile botProfile) |
void |
setChannel(String channel) |
void |
setEventTs(String eventTs) |
void |
setSubtype(String subtype) |
void |
setTeam(String team) |
void |
setText(String text) |
void |
setThreadTs(String threadTs) |
void |
setTs(String ts) |
void |
setUser(String user) |
void |
setUsername(String username) |
String |
toString() |
public static final String TYPE_NAME
public String getUser()
public String getUsername()
public String getBotId()
public BotProfile getBotProfile()
public String getSubtype()
getSubtype
in interface Event
public String getText()
public String getTs()
public String getTeam()
public String getChannel()
public String getEventTs()
public String getThreadTs()
public void setUser(String user)
public void setUsername(String username)
public void setBotId(String botId)
public void setBotProfile(BotProfile botProfile)
public void setSubtype(String subtype)
public void setText(String text)
public void setTs(String ts)
public void setTeam(String team)
public void setChannel(String channel)
public void setEventTs(String eventTs)
public void setThreadTs(String threadTs)
protected boolean canEqual(Object other)
Copyright © 2020. All rights reserved.