    001package co.aikar.commands;
    002
    003import org.jetbrains.annotations.NotNull;
    004
    005import java.util.Collections;
    006import java.util.List;
    007
    008public class JDACommandCompletions extends CommandCompletions<CommandCompletionContext<?>> {
    009    private boolean initialized;
    010
    011    public JDACommandCompletions(CommandManager manager) {
    012        super(manager);
    013        this.initialized = true;
    014    }
    015
    016    @Override
    017    public CommandCompletionHandler registerCompletion(String id, CommandCompletionHandler<CommandCompletionContext<?>> handler) {
    018        if (initialized) {
    019            throw new UnsupportedOperationException("JDA Doesn't support Command Completions");
    020        }
    021        return null;
    022    }
    023
    024    @Override
    025    public CommandCompletionHandler registerAsyncCompletion(String id, AsyncCommandCompletionHandler<CommandCompletionContext<?>> handler) {
    026        if (initialized) {
    027            throw new UnsupportedOperationException("JDA Doesn't support Command Completions");
    028        }
    029        return null;
    030    }
    031
    032    @NotNull
    033    @Override
    034    List<String> of(RegisteredCommand command, CommandIssuer sender, String[] args, boolean isAsync) {
    035        return Collections.emptyList();
    036    }
    037
    038    @Override
    039    List<String> getCompletionValues(RegisteredCommand command, CommandIssuer sender, String completion, String[] args, boolean isAsync) {
    040        return Collections.emptyList();
    041    }
    042}