Skip to content

Commit

Permalink
Deprecate SlashCommand#guildId
Browse files Browse the repository at this point in the history
  • Loading branch information
Chew committed Aug 18, 2021
1 parent 026b03d commit 9e60ef8
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 9e60ef8

Please sign in to comment.