/*
 * Skybot, a multipurpose discord bot
 *      Copyright (C) 2017 - 2020  Duncan "duncte123" Sterken & Ramid "ramidzkh" Khan & Maurice R S "Sanduhr32"
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published
 * by the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package ml.duncte123.skybot.commands.guild.owner.settings;

import ml.duncte123.skybot.Author;
import ml.duncte123.skybot.entities.jda.DunctebotGuild;
import ml.duncte123.skybot.objects.command.CommandContext;
import ml.duncte123.skybot.objects.guild.GuildSettings;
import ml.duncte123.skybot.utils.GuildSettingsUtils;
import net.dv8tion.jda.api.events.message.guild.GuildMessageReceivedEvent;

import javax.annotation.Nonnull;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

import static me.duncte123.botcommons.messaging.MessageUtils.sendMsg;

@Author(nickname = "duncte123", author = "Duncan Sterken")
public class SetRateLimitsCommand extends SettingsBase {

    public SetRateLimitsCommand() {
        this.name = "setratelimits";
        this.help = "Sets our cooldown in minutes for un-muting your spammer of choice.\n";
        this.extraInfo = "Example: `{prefix}setratelimits 20|45|60|120|240|2400`";
        this.usage = "<1|2|3|4|5|6/default>";
    }

    @Override
    public void execute(@Nonnull CommandContext ctx) {
        final String inp = ctx.getArgs().isEmpty() ? null : ctx.getArgsRaw();

        this.showNewHelp(ctx, "rateLimits", inp);
    }
}

/*
 * Skybot, a multipurpose discord bot
 *      Copyright (C) 2017 - 2020  Duncan "duncte123" Sterken & Ramid "ramidzkh" Khan & Maurice R S "Sanduhr32"
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published
 * by the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package ml.duncte123.skybot.commands.guild.owner.settings;

import ml.duncte123.skybot.Author;
import ml.duncte123.skybot.objects.command.CommandContext;

import javax.annotation.Nonnull;

@Author(nickname = "duncte123", author = "Duncan Sterken")
public class SetRateLimitsCommand extends SettingsBase {

    public SetRateLimitsCommand() {
        this.name = "setratelimits";
        this.help = "Sets our cooldown in minutes for un-muting your spammer of choice.\n";
        this.extraInfo = "Example: `{prefix}setratelimits 20|45|60|120|240|2400`";
        this.usage = "<1|2|3|4|5|6/default>";
    }

    @Override
    public void execute(@Nonnull CommandContext ctx) {
        final String inp = ctx.getArgs().isEmpty() ? null : ctx.getArgsRaw();

        this.showNewHelp(ctx, "rateLimits", inp);
    }
}

Clean some imports