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
ConstructorsConstructorDescriptionIgnoringSelfEvents(SlackConfig config) IgnoringSelfEvents(SlackConfig config, boolean ignoringSelfAssistantMessageEventsEnabled) -
Method Summary
Modifier and TypeMethodDescriptionapply(Request req, Response resp, MiddlewareChain chain) findAndSaveBotUserId(MethodsClient client, String botId) protected ConcurrentMap<String,String> voidsetEventTypesNotToMiss(List<String> eventTypesNotToMiss)
-
Constructor Details
-
IgnoringSelfEvents
-
IgnoringSelfEvents
-
-
Method Details
-
getBotIdToBotUserId
-
getEventTypesNotToMiss
-
setEventTypesNotToMiss
-
apply
- Specified by:
applyin interfaceMiddleware- Throws:
Exception
-
findAndSaveBotUserId
public String findAndSaveBotUserId(MethodsClient client, String botId) throws IOException, SlackApiException - Throws:
IOExceptionSlackApiException
-