Skip to content

Commit 9e60ef8

Browse files
committed
Deprecate SlashCommand#guildId
1 parent 026b03d commit 9e60ef8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

command/src/main/java/com/jagrosh/jdautilities/command/SlashCommand.java

+4
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ public abstract class SlashCommand extends Command
128128
* The ID of the server you want guildOnly tied to.
129129
* This means the slash command will only work and show up in the specified Guild.
130130
* If this is null, guildOnly will still be processed, however an ephemeral message will be sent telling them to move.
131+
* @deprecated This will be removed in favor of {@link CommandClientBuilder#forceGuildOnly(String)}. Please use that instead.
132+
* @see CommandClientBuilder#forceGuildOnly(String)
131133
*/
132134
protected String guildId = null;
133135

@@ -376,6 +378,8 @@ public CommandClient getClient()
376378
/**
377379
* Gets the associated Guild ID for Guild Only command.
378380
*
381+
* @deprecated This will be removed in favor of {@link CommandClientBuilder#forceGuildOnly(String)}. Please use that instead.
382+
* @see CommandClientBuilder#forceGuildOnly(String)
379383
* @return the ID for the specific Guild
380384
*/
381385
public String getGuildId()

0 commit comments

Comments
 (0)