Return Pair<Bean, Method>

java-rewrite
Hammy 3 years ago
parent c9e0c4dcb6
commit cfef147fe7

@ -1,10 +1,11 @@
package me.goudham.command; package me.goudham.command;
import java.lang.reflect.Method;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import me.goudham.bot.command.ISlashCommand;
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;
public interface CommandLoader { public interface CommandLoader {
List<CommandData> loadIntoMapAndReturnCommands(Map<String, ISlashCommand> commandMap); List<CommandData> loadIntoMapAndReturnCommands(Map<String, Pair<Object, Method>> commandMap);
} }

Loading…
Cancel
Save