fix isAssignableFrom order

This commit is contained in:
tueem 2024-11-01 17:37:49 +01:00
parent e39ac2d67e
commit bbeb58e5e4
No known key found for this signature in database
GPG Key ID: 819A0F7C36B9CF07

@ -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;