@@ -37,7 +37,7 @@ public class InteractionRegistry {
|
|||||||
|
|
||||||
execDefs.forEach((def) -> {
|
execDefs.forEach((def) -> {
|
||||||
Optional<SlashCommandDefinition> appDef = defs.stream()
|
Optional<SlashCommandDefinition> appDef = defs.stream()
|
||||||
.filter((x) -> x.getApplicationCommand().equals(def.applicationCommand()))
|
.filter((x) -> x.getSlashCommand().equals(def.applicationCommand()))
|
||||||
.findFirst();
|
.findFirst();
|
||||||
if (appDef.isPresent())
|
if (appDef.isPresent())
|
||||||
appDef.get().addExecutableCommand(def);
|
appDef.get().addExecutableCommand(def);
|
||||||
|
Reference in New Issue
Block a user