Remove autocomplete from command options

Disabled autocomplete for "staff" and "join-time" options in the CommandStaffJoinDate constructor. This change simplifies the command interface by eliminating unnecessary suggestions.
This commit is contained in:
Teriuihi 2024-08-25 19:45:58 +02:00
parent 8a65c27bac
commit 8f6d1137ae

View File

@ -29,8 +29,8 @@ public class CommandStaffJoinDate extends DiscordCommand {
public CommandStaffJoinDate(JDA jda, CommandManager commandManager) {
CommandData commandData = Commands.slash(getName(), "View join date for staff members, or add them manually")
.addOption(OptionType.MENTIONABLE, "staff", "Set the soft lock \"on\" or \"off\"", false, true)
.addOption(OptionType.NUMBER, "join-time", "Channel to change soft lock state for", false, true)
.addOption(OptionType.MENTIONABLE, "staff", "Set the soft lock \"on\" or \"off\"", false, false)
.addOption(OptionType.NUMBER, "join-time", "Channel to change soft lock state for", false, false)
.setDefaultPermissions(DefaultMemberPermissions.enabledFor(Permission.ADMINISTRATOR))
.setGuildOnly(true);