tech.xigam.cch.command.SubCommand Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of CCH Show documentation
Show all versions of CCH Show documentation
A really useful and simple command handler for JDA.
package tech.xigam.cch.command;
import java.util.ArrayList;
import java.util.List;
public abstract class SubCommand extends Command implements BaseCommand {
private final List aliases = new ArrayList<>();
public SubCommand(String label, String description) {
super(label, description);
}
public final List getAliases() {
return aliases;
}
protected final void createAlias(String alias) {
this.aliases.add(new Alias(alias, this));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy