From bd3774fab00fb421612ccddc941e43ea40375b0f Mon Sep 17 00:00:00 2001 From: Nick Date: Thu, 27 Jun 2024 19:59:59 -0500 Subject: [PATCH] Remove ServerIconCommand --- .../impl/server/ServerIconCommand.java | 27 ------------------- 1 file changed, 27 deletions(-) delete mode 100644 src/main/java/cc/fascinated/bat/command/impl/server/ServerIconCommand.java diff --git a/src/main/java/cc/fascinated/bat/command/impl/server/ServerIconCommand.java b/src/main/java/cc/fascinated/bat/command/impl/server/ServerIconCommand.java deleted file mode 100644 index 0dae6ee..0000000 --- a/src/main/java/cc/fascinated/bat/command/impl/server/ServerIconCommand.java +++ /dev/null @@ -1,27 +0,0 @@ -package cc.fascinated.bat.command.impl.server; - -import cc.fascinated.bat.command.BatCommand; -import cc.fascinated.bat.command.CommandInfo; -import cc.fascinated.bat.common.EmbedUtils; -import cc.fascinated.bat.model.BatGuild; -import cc.fascinated.bat.model.BatUser; -import lombok.NonNull; -import net.dv8tion.jda.api.EmbedBuilder; -import net.dv8tion.jda.api.entities.Member; -import net.dv8tion.jda.api.entities.channel.middleman.MessageChannel; -import net.dv8tion.jda.api.interactions.commands.SlashCommandInteraction; -import org.springframework.stereotype.Component; - -/** - * @author Nick (okNick) - */ -@Component -@CommandInfo(name = "servericon", description = "View the icon of the server!") -public class ServerIconCommand extends BatCommand { - @Override - public void execute(BatGuild guild, @NonNull BatUser user, @NonNull MessageChannel channel, Member member, @NonNull SlashCommandInteraction interaction) { - EmbedBuilder embed = EmbedUtils.genericEmbed().setAuthor("Server icon for " + guild.getName()); - embed.setImage(guild.getDiscordGuild().getIconUrl()); - interaction.replyEmbeds(embed.build()).queue(); - } -} \ No newline at end of file