Disable help command and remove unnecessary imports
This commit is contained in:
parent
103f6ce538
commit
287343b5d3
3 changed files with 1 additions and 4 deletions
|
@ -49,7 +49,7 @@ public class Doki {
|
|||
start();
|
||||
jda = getJDA();
|
||||
CommandsBuilder.newBuilder(437970062922612737L)
|
||||
.textCommandBuilder(textCommandsBuilder -> textCommandsBuilder.addPrefix(getPrefix()))
|
||||
.textCommandBuilder(textCommandsBuilder -> textCommandsBuilder.disableHelpCommand(true))
|
||||
.build(jda, "net.hypr.doki.commands"); //Registering listeners is taken care of by the lib
|
||||
} catch (Exception e) {
|
||||
log.error("Failed to start the bot", e);
|
||||
|
|
|
@ -2,8 +2,6 @@ package net.hypr.doki.commands.utils;
|
|||
|
||||
import com.freya02.botcommands.api.annotations.CommandMarker;
|
||||
import com.freya02.botcommands.api.application.ApplicationCommand;
|
||||
import com.freya02.botcommands.api.application.CommandScope;
|
||||
import com.freya02.botcommands.api.application.slash.GlobalSlashEvent;
|
||||
import com.freya02.botcommands.api.application.slash.GuildSlashEvent;
|
||||
import com.freya02.botcommands.api.application.slash.annotations.JDASlashCommand;
|
||||
import com.freya02.botcommands.api.prefixed.annotations.Category;
|
||||
|
|
|
@ -3,7 +3,6 @@ package net.hypr.doki.commands.utils;
|
|||
import com.freya02.botcommands.api.annotations.CommandMarker;
|
||||
import com.freya02.botcommands.api.annotations.Optional;
|
||||
import com.freya02.botcommands.api.application.ApplicationCommand;
|
||||
import com.freya02.botcommands.api.application.CommandScope;
|
||||
import com.freya02.botcommands.api.application.annotations.AppOption;
|
||||
import com.freya02.botcommands.api.application.slash.GuildSlashEvent;
|
||||
import com.freya02.botcommands.api.application.slash.annotations.JDASlashCommand;
|
||||
|
|
Loading…
Reference in a new issue