fix isAssignableFrom order
This commit is contained in:
parent
e39ac2d67e
commit
bbeb58e5e4
@ -58,7 +58,7 @@ public class JavacordWrapper extends LibraryWrapper {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public InteractionType getInteractionType(Class<?> clazz) {
|
public InteractionType getInteractionType(Class<?> clazz) {
|
||||||
if (clazz.isAssignableFrom(ApplicationCommandInteraction.class))
|
if (ApplicationCommandInteraction.class.isAssignableFrom(clazz))
|
||||||
return InteractionType.COMMAND;
|
return InteractionType.COMMAND;
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user