diff --git a/lib/src/main/java/net/tomatentum/marinara/registry/InteractionRegistry.java b/lib/src/main/java/net/tomatentum/marinara/registry/InteractionRegistry.java index 90ce054..d64fa22 100644 --- a/lib/src/main/java/net/tomatentum/marinara/registry/InteractionRegistry.java +++ b/lib/src/main/java/net/tomatentum/marinara/registry/InteractionRegistry.java @@ -37,7 +37,7 @@ public class InteractionRegistry { execDefs.forEach((def) -> { Optional appDef = defs.stream() - .filter((x) -> x.getApplicationCommand().equals(def.applicationCommand())) + .filter((x) -> x.getSlashCommand().equals(def.applicationCommand())) .findFirst(); if (appDef.isPresent()) appDef.get().addExecutableCommand(def);