diff --git a/build.gradle.kts b/build.gradle.kts index 0bafa204..f083447c 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -6,7 +6,7 @@ plugins { id("net.kyori.blossom") version "1.3.1" } -version = "4.5.42-pre" +version = "4.5.43-pre" repositories { maven("https://jitpack.io") diff --git a/src/main/java/com/jelly/farmhelper/remote/command/discordCommands/Toggle.java b/src/main/java/com/jelly/farmhelper/remote/command/discordCommands/Toggle.java index 9a916a3d..9df6af80 100644 --- a/src/main/java/com/jelly/farmhelper/remote/command/discordCommands/Toggle.java +++ b/src/main/java/com/jelly/farmhelper/remote/command/discordCommands/Toggle.java @@ -2,10 +2,13 @@ import com.jelly.farmhelper.remote.WebsocketHandler; import com.jelly.farmhelper.remote.discordStruct.DiscordCommand; +import com.jelly.farmhelper.remote.discordStruct.Option; import com.jelly.farmhelper.remote.waiter.Waiter; import com.jelly.farmhelper.remote.waiter.WaiterHandler; import net.dv8tion.jda.api.EmbedBuilder; import net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent; +import net.dv8tion.jda.api.interactions.commands.OptionType; + import java.util.Objects; @@ -15,6 +18,10 @@ public class Toggle extends DiscordCommand { public Toggle() { super(Toggle.name, Toggle.description); + addOptions( + new Option(OptionType.STRING, "ign", "The IGN of the player you want to toggle this account", false, true) + ); + } @Override