Refactor clearchat class

This commit is contained in:
Bea 2022-11-22 00:35:10 +01:00
parent d3db53a451
commit 51de18206e
3 changed files with 4 additions and 4 deletions

View File

@ -17,7 +17,7 @@ import wtf.beatrice.hidekobot.Cache;
import java.util.ArrayList;
import java.util.List;
public class ClearChatCommand
public class ClearCommand
{
public void runSlashCommand(@NotNull SlashCommandInteractionEvent event)

View File

@ -2,7 +2,7 @@ package wtf.beatrice.hidekobot.listeners;
import net.dv8tion.jda.api.events.interaction.component.ButtonInteractionEvent;
import net.dv8tion.jda.api.hooks.ListenerAdapter;
import wtf.beatrice.hidekobot.commands.slash.ClearChatCommand;
import wtf.beatrice.hidekobot.commands.slash.ClearCommand;
import wtf.beatrice.hidekobot.commands.slash.CoinFlipCommand;
public class ButtonInteractionListener extends ListenerAdapter
@ -18,7 +18,7 @@ public class ButtonInteractionListener extends ListenerAdapter
case "coinflip_reflip" -> new CoinFlipCommand().buttonReFlip(event);
// clearchat command
case "clear_dismiss" -> new ClearChatCommand().dismissMessage(event);
case "clear_dismiss" -> new ClearCommand().dismissMessage(event);
}

View File

@ -14,7 +14,7 @@ public class SlashCommandListener extends ListenerAdapter
switch (event.getName().toLowerCase()) {
case "avatar" -> new AvatarCommand().runSlashCommand(event);
case "botinfo" -> new BotInfoCommand().runSlashCommand(event);
case "clear" -> new ClearChatCommand().runSlashCommand(event);
case "clear" -> new ClearCommand().runSlashCommand(event);
case "coinflip" -> new CoinFlipCommand().runSlashCommand(event);
case "die" -> new DieCommand().runSlashCommand(event);
case "help" -> new HelpCommand().runSlashCommand(event);