add first ApplicationCommandDefinition implementation

This commit is contained in:
tueem committed 2024-10-15 17:30:39 +02:00
1 parent 89d172e2f3
commit 410b299ad6
2 files changed
+43 -7

No files matched your search

@@ -37,7 +37,7 @@ public class InteractionRegistry {
execDefs.forEach((def) -> {
Optional<ApplicationCommandDefinition> appDef = defs.stream()
.filter((x) -> x.applicationCommand().equals(def.applicationCommand()))
.filter((x) -> x.getApplicationCommand().equals(def.applicationCommand()))
.findFirst();
if (appDef.isPresent())
appDef.get().addExecutableCommand(def);