From 9e60ef81f7515e92a3e84f959539a4bacdab6e5c Mon Sep 17 00:00:00 2001 From: Chew Date: Wed, 18 Aug 2021 16:20:22 -0500 Subject: [PATCH] Deprecate SlashCommand#guildId --- .../java/com/jagrosh/jdautilities/command/SlashCommand.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/command/src/main/java/com/jagrosh/jdautilities/command/SlashCommand.java b/command/src/main/java/com/jagrosh/jdautilities/command/SlashCommand.java index 9687ed93..be8cead7 100644 --- a/command/src/main/java/com/jagrosh/jdautilities/command/SlashCommand.java +++ b/command/src/main/java/com/jagrosh/jdautilities/command/SlashCommand.java @@ -128,6 +128,8 @@ public abstract class SlashCommand extends Command * The ID of the server you want guildOnly tied to. * This means the slash command will only work and show up in the specified Guild. * If this is null, guildOnly will still be processed, however an ephemeral message will be sent telling them to move. + * @deprecated This will be removed in favor of {@link CommandClientBuilder#forceGuildOnly(String)}. Please use that instead. + * @see CommandClientBuilder#forceGuildOnly(String) */ protected String guildId = null; @@ -376,6 +378,8 @@ public CommandClient getClient() /** * Gets the associated Guild ID for Guild Only command. * + * @deprecated This will be removed in favor of {@link CommandClientBuilder#forceGuildOnly(String)}. Please use that instead. + * @see CommandClientBuilder#forceGuildOnly(String) * @return the ID for the specific Guild */ public String getGuildId()