Implement this interface to handle an action.
Usage
Create an Apex class that implements this interface as a callback for your action or event dispatcher.
public class MySlashCommandDispatcher extends Slack.SlashCommandDispatcher {
public override Slack.ActionHandler invoke(Slack.SlashCommandParameters parameters, Slack.RequestContext context) {
return Slack.ActionHandler.ack(new Handler());
}
public class Handler implements Slack.RunnableHandler {
public void run () {
System.debug('My Callback');
}
}
}
RunnableHandler Methods
RunnableHandler has the following method.
run()
A callback method for the dispatcher handler, such as for a class that extends Slack.SlashCommandDispatcher or Slack.ShortcutDispatcher.
Signature
public void run()
Return Value
Type: void