From 818a25346b7cf642e365d59b2df8b86c3653df8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beatrice=20Dellac=C3=A0?= Date: Sat, 14 Jan 2023 20:22:37 +0100 Subject: [PATCH] Optimize imports --- .../hidekobot/commands/base/UserPunishment.java | 1 - .../hidekobot/commands/message/BanCommand.java | 10 ---------- .../hidekobot/commands/message/BotInfoCommand.java | 1 - .../hidekobot/commands/message/KickCommand.java | 9 --------- .../beatrice/hidekobot/commands/slash/KickCommand.java | 10 ---------- .../java/wtf/beatrice/hidekobot/util/FormatUtil.java | 4 ---- 6 files changed, 35 deletions(-) diff --git a/src/main/java/wtf/beatrice/hidekobot/commands/base/UserPunishment.java b/src/main/java/wtf/beatrice/hidekobot/commands/base/UserPunishment.java index d0491f4..6ec2cf8 100644 --- a/src/main/java/wtf/beatrice/hidekobot/commands/base/UserPunishment.java +++ b/src/main/java/wtf/beatrice/hidekobot/commands/base/UserPunishment.java @@ -20,7 +20,6 @@ import wtf.beatrice.hidekobot.util.FormatUtil; import java.time.Duration; import java.time.temporal.ChronoUnit; import java.util.ArrayList; -import java.util.Arrays; import java.util.Collections; import java.util.List; import java.util.concurrent.TimeUnit; diff --git a/src/main/java/wtf/beatrice/hidekobot/commands/message/BanCommand.java b/src/main/java/wtf/beatrice/hidekobot/commands/message/BanCommand.java index ef3fcef..d4c540c 100644 --- a/src/main/java/wtf/beatrice/hidekobot/commands/message/BanCommand.java +++ b/src/main/java/wtf/beatrice/hidekobot/commands/message/BanCommand.java @@ -1,19 +1,10 @@ package wtf.beatrice.hidekobot.commands.message; -import net.dv8tion.jda.api.EmbedBuilder; import net.dv8tion.jda.api.Permission; -import net.dv8tion.jda.api.entities.IMentionable; -import net.dv8tion.jda.api.entities.Mentions; -import net.dv8tion.jda.api.entities.User; -import net.dv8tion.jda.api.entities.channel.concrete.TextChannel; import net.dv8tion.jda.api.events.message.MessageReceivedEvent; -import net.dv8tion.jda.api.requests.restaction.AuditableRestAction; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; -import wtf.beatrice.hidekobot.Cache; -import wtf.beatrice.hidekobot.HidekoBot; import wtf.beatrice.hidekobot.commands.base.UserPunishment; -import wtf.beatrice.hidekobot.objects.MessageResponse; import wtf.beatrice.hidekobot.objects.commands.CommandCategory; import wtf.beatrice.hidekobot.objects.commands.MessageCommand; @@ -21,7 +12,6 @@ import java.util.ArrayList; import java.util.Collections; import java.util.LinkedList; import java.util.List; -import java.util.concurrent.TimeUnit; public class BanCommand implements MessageCommand { diff --git a/src/main/java/wtf/beatrice/hidekobot/commands/message/BotInfoCommand.java b/src/main/java/wtf/beatrice/hidekobot/commands/message/BotInfoCommand.java index 525af20..b2db865 100644 --- a/src/main/java/wtf/beatrice/hidekobot/commands/message/BotInfoCommand.java +++ b/src/main/java/wtf/beatrice/hidekobot/commands/message/BotInfoCommand.java @@ -11,7 +11,6 @@ import wtf.beatrice.hidekobot.objects.commands.CommandCategory; import wtf.beatrice.hidekobot.objects.commands.MessageCommand; import java.util.Arrays; -import java.util.Collections; import java.util.LinkedList; import java.util.List; diff --git a/src/main/java/wtf/beatrice/hidekobot/commands/message/KickCommand.java b/src/main/java/wtf/beatrice/hidekobot/commands/message/KickCommand.java index ba478d8..473c4fe 100644 --- a/src/main/java/wtf/beatrice/hidekobot/commands/message/KickCommand.java +++ b/src/main/java/wtf/beatrice/hidekobot/commands/message/KickCommand.java @@ -1,19 +1,10 @@ package wtf.beatrice.hidekobot.commands.message; -import net.dv8tion.jda.api.EmbedBuilder; import net.dv8tion.jda.api.Permission; -import net.dv8tion.jda.api.entities.IMentionable; -import net.dv8tion.jda.api.entities.Mentions; -import net.dv8tion.jda.api.entities.User; -import net.dv8tion.jda.api.entities.channel.concrete.TextChannel; import net.dv8tion.jda.api.events.message.MessageReceivedEvent; -import net.dv8tion.jda.api.requests.restaction.AuditableRestAction; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; -import wtf.beatrice.hidekobot.Cache; -import wtf.beatrice.hidekobot.HidekoBot; import wtf.beatrice.hidekobot.commands.base.UserPunishment; -import wtf.beatrice.hidekobot.objects.MessageResponse; import wtf.beatrice.hidekobot.objects.commands.CommandCategory; import wtf.beatrice.hidekobot.objects.commands.MessageCommand; diff --git a/src/main/java/wtf/beatrice/hidekobot/commands/slash/KickCommand.java b/src/main/java/wtf/beatrice/hidekobot/commands/slash/KickCommand.java index 76b4470..ef44a23 100644 --- a/src/main/java/wtf/beatrice/hidekobot/commands/slash/KickCommand.java +++ b/src/main/java/wtf/beatrice/hidekobot/commands/slash/KickCommand.java @@ -1,25 +1,15 @@ package wtf.beatrice.hidekobot.commands.slash; import net.dv8tion.jda.api.Permission; -import net.dv8tion.jda.api.entities.IMentionable; -import net.dv8tion.jda.api.entities.User; -import net.dv8tion.jda.api.entities.channel.middleman.MessageChannel; import net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent; import net.dv8tion.jda.api.interactions.commands.DefaultMemberPermissions; -import net.dv8tion.jda.api.interactions.commands.OptionMapping; import net.dv8tion.jda.api.interactions.commands.OptionType; import net.dv8tion.jda.api.interactions.commands.build.CommandData; import net.dv8tion.jda.api.interactions.commands.build.Commands; import org.jetbrains.annotations.NotNull; -import wtf.beatrice.hidekobot.commands.base.Say; import wtf.beatrice.hidekobot.commands.base.UserPunishment; -import wtf.beatrice.hidekobot.objects.MessageResponse; import wtf.beatrice.hidekobot.objects.commands.SlashCommandImpl; -import java.util.ArrayList; -import java.util.Collections; -import java.util.List; - public class KickCommand extends SlashCommandImpl { @Override diff --git a/src/main/java/wtf/beatrice/hidekobot/util/FormatUtil.java b/src/main/java/wtf/beatrice/hidekobot/util/FormatUtil.java index a7f4967..9b73f65 100644 --- a/src/main/java/wtf/beatrice/hidekobot/util/FormatUtil.java +++ b/src/main/java/wtf/beatrice/hidekobot/util/FormatUtil.java @@ -4,14 +4,10 @@ import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import java.time.Duration; -import java.time.Instant; import java.time.LocalDateTime; import java.time.temporal.ChronoUnit; -import java.time.temporal.TemporalAccessor; import java.time.temporal.TemporalUnit; import java.util.Arrays; -import java.util.Locale; -import java.util.concurrent.TimeUnit; public class FormatUtil {