Class IgnoringSelfEvents
java.lang.Object
com.slack.api.bolt.middleware.builtin.IgnoringSelfEvents
- All Implemented Interfaces:
Middleware
Filters some events that may be generated by this app for Events API.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapply
(Request req, Response resp, MiddlewareChain chain) findAndSaveBotUserId
(MethodsClient client, String botId) protected ConcurrentMap<String,
String> void
setEventTypesNotToMiss
(List<String> eventTypesNotToMiss)
-
Constructor Details
-
IgnoringSelfEvents
-
-
Method Details
-
getBotIdToBotUserId
-
getEventTypesNotToMiss
-
setEventTypesNotToMiss
-
apply
- Specified by:
apply
in interfaceMiddleware
- Throws:
Exception
-
findAndSaveBotUserId
public String findAndSaveBotUserId(MethodsClient client, String botId) throws IOException, SlackApiException - Throws:
IOException
SlackApiException
-