|
|
@ -214,8 +214,8 @@ public class SlashCommandLoader implements CommandLoader {
|
|
|
|
ExecutableMethod<Object, Object> executableMethod = null;
|
|
|
|
ExecutableMethod<Object, Object> executableMethod = null;
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
executableMethod = beanContext.getExecutableMethod(clazz, methodName, SlashCommandEvent.class);
|
|
|
|
executableMethod = beanContext.getExecutableMethod(clazz, methodName, SlashCommandEvent.class);
|
|
|
|
} catch (NoSuchMethodException e) {
|
|
|
|
} catch (NoSuchMethodException nsme) {
|
|
|
|
e.printStackTrace();
|
|
|
|
nsme.printStackTrace();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
commandMap.put(commandPath, new ImmutablePair<>(beanInstance, executableMethod));
|
|
|
|
commandMap.put(commandPath, new ImmutablePair<>(beanInstance, executableMethod));
|
|
|
|