From bbeb58e5e44103648f86806ecd853d10cb512aac Mon Sep 17 00:00:00 2001 From: tueem Date: Fri, 1 Nov 2024 17:37:49 +0100 Subject: [PATCH] fix isAssignableFrom order --- .../tomatentum/marinare/wrapper/javacord/JavacordWrapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrapper/javacord/src/main/java/net/tomatentum/marinare/wrapper/javacord/JavacordWrapper.java b/wrapper/javacord/src/main/java/net/tomatentum/marinare/wrapper/javacord/JavacordWrapper.java index d50c47c..dcc5af8 100644 --- a/wrapper/javacord/src/main/java/net/tomatentum/marinare/wrapper/javacord/JavacordWrapper.java +++ b/wrapper/javacord/src/main/java/net/tomatentum/marinare/wrapper/javacord/JavacordWrapper.java @@ -58,7 +58,7 @@ public class JavacordWrapper extends LibraryWrapper { @Override public InteractionType getInteractionType(Class clazz) { - if (clazz.isAssignableFrom(ApplicationCommandInteraction.class)) + if (ApplicationCommandInteraction.class.isAssignableFrom(clazz)) return InteractionType.COMMAND; return null;