Use ExecutableMethod instead of Method.java

java-rewrite
Hammy 3 years ago
parent e4a5adf03e
commit 8c7ab5c4ac

@ -1,11 +1,11 @@
package me.goudham.command; package me.goudham.command;
import java.lang.reflect.Method; import io.micronaut.inject.ExecutableMethod;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import net.dv8tion.jda.api.interactions.commands.build.CommandData; import net.dv8tion.jda.api.interactions.commands.build.CommandData;
import net.dv8tion.jda.internal.utils.tuple.Pair; import net.dv8tion.jda.internal.utils.tuple.Pair;
public interface CommandLoader { public interface CommandLoader {
List<CommandData> loadIntoMapAndReturnCommands(Map<String, Pair<Object, Method>> commandMap); List<CommandData> loadIntoMapAndReturnCommands(Map<String, Pair<Object, ExecutableMethod<Object, Object>>> commandMap);
} }

Loading…
Cancel
Save