diff --git a/lib/src/main/java/net/tomatentum/marinara/interaction/commands/ApplicationCommandDefinition.java b/lib/src/main/java/net/tomatentum/marinara/interaction/commands/ApplicationCommandDefinition.java new file mode 100644 index 0000000..8df5248 --- /dev/null +++ b/lib/src/main/java/net/tomatentum/marinara/interaction/commands/ApplicationCommandDefinition.java @@ -0,0 +1,20 @@ +package net.tomatentum.marinara.interaction.commands; + +import java.util.ArrayList; +import java.util.List; + +public record ApplicationCommandDefinition( + List executableDefinitons, + String applicationCommand +) { + + public ApplicationCommandDefinition(String applicationCommand) { + this(new ArrayList<>(), applicationCommand); + } + + public ApplicationCommandDefinition addExecutableCommand(ExecutableCommandDefinition def) { + executableDefinitons.add(def); + return this; + } + +}