Skip to content

Commit 18025ab

Browse files
Removed overrides
1 parent d028cc5 commit 18025ab

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/main/java/net/javadiscord/javabot/systems/configuration/ConfigCommand.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package net.javadiscord.javabot.systems.configuration;
22

33
import com.dynxsty.dih4jda.interactions.commands.SlashCommand;
4-
import net.dv8tion.jda.api.interactions.commands.DefaultMemberPermissions;
54
import net.dv8tion.jda.api.interactions.commands.build.Commands;
65
import net.javadiscord.javabot.Bot;
76
import net.javadiscord.javabot.systems.configuration.subcommands.ExportConfigSubcommand;
@@ -18,10 +17,7 @@ public class ConfigCommand extends SlashCommand implements CommandModerationPerm
1817
* The constructor of this class, which sets the corresponding {@link net.dv8tion.jda.api.interactions.commands.build.SlashCommandData}.
1918
*/
2019
public ConfigCommand() {
21-
setModerationSlashCommandData(Commands.slash("config", "Administrative Commands for managing the bot's configuration.")
22-
.setDefaultPermissions(DefaultMemberPermissions.DISABLED)
23-
.setGuildOnly(true)
24-
);
20+
setModerationSlashCommandData(Commands.slash("config", "Administrative Commands for managing the bot's configuration."));
2521
addSubcommands(new ExportConfigSubcommand(), new GetConfigSubcommand(), new SetConfigSubcommand());
2622
requireUsers(Bot.config.getSystems().getAdminConfig().getAdminUsers());
2723
}

0 commit comments

Comments
 (0)