diff --git a/lib/src/main/java/net/tomatentum/marinara/interaction/methods/ButtonInteractionMethod.java b/lib/src/main/java/net/tomatentum/marinara/interaction/methods/ButtonInteractionMethod.java index 165dfa0..baf8f4e 100644 --- a/lib/src/main/java/net/tomatentum/marinara/interaction/methods/ButtonInteractionMethod.java +++ b/lib/src/main/java/net/tomatentum/marinara/interaction/methods/ButtonInteractionMethod.java @@ -18,7 +18,7 @@ public class ButtonInteractionMethod extends InteractionMethod { @Override public Object getParameter(Object parameter, int index) { - Class type = getMethod().getParameterTypes()[index]; + Class type = getMethod().getParameterTypes()[index+1]; return wrapper.getComponentContextObject(parameter, type); }