From 0c9d8ecb538076e0c4c1b127ba5327cc8f8839f1 Mon Sep 17 00:00:00 2001 From: tueem Date: Fri, 25 Oct 2024 20:25:57 +0200 Subject: [PATCH] change global flag to a list of serverIds and if it is empty it will be global --- .../interaction/commands/annotation/ApplicationCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/main/java/net/tomatentum/marinara/interaction/commands/annotation/ApplicationCommand.java b/lib/src/main/java/net/tomatentum/marinara/interaction/commands/annotation/ApplicationCommand.java index af81f35..d8f91af 100644 --- a/lib/src/main/java/net/tomatentum/marinara/interaction/commands/annotation/ApplicationCommand.java +++ b/lib/src/main/java/net/tomatentum/marinara/interaction/commands/annotation/ApplicationCommand.java @@ -12,5 +12,5 @@ public @interface ApplicationCommand { public String description() default ""; public String[] aliases() default {}; public CommandOption[] options() default {}; - public boolean isGlobal() default false; + public long[] serverIds() default {}; }