All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.split.qos.server.integrations.slack.commands.SlackCommandExecutor Maven / Gradle / Ivy

There is a newer version: 22.4.3
Show newest version
package io.split.qos.server.integrations.slack.commands;

import com.ullink.slack.simpleslackapi.SlackSession;
import com.ullink.slack.simpleslackapi.events.SlackMessagePosted;

import java.util.List;
import java.util.function.BiPredicate;

/**
 * A Command is a BiPredicate that also has a help for displaying purposes.
 */
public interface SlackCommandExecutor extends BiPredicate {
    /**
     * Description of the command
     */
    String description();

    /**
     * Arguments that the command accepts.
     */
    String arguments();

    boolean acceptsArguments(List arguments);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy