From fbb292a591695b6f89eb016fdc135e766d58c002 Mon Sep 17 00:00:00 2001 From: Liam Date: Sat, 6 Jul 2024 00:05:52 +0100 Subject: [PATCH] oopsie --- .../features/base/commands/general/LookupUserCommand.java | 1 - .../bat/features/spotify/command/LinkSubCommand.java | 5 ----- 2 files changed, 6 deletions(-) diff --git a/src/main/java/cc/fascinated/bat/features/base/commands/general/LookupUserCommand.java b/src/main/java/cc/fascinated/bat/features/base/commands/general/LookupUserCommand.java index 651e7c5..a4c864c 100644 --- a/src/main/java/cc/fascinated/bat/features/base/commands/general/LookupUserCommand.java +++ b/src/main/java/cc/fascinated/bat/features/base/commands/general/LookupUserCommand.java @@ -17,7 +17,6 @@ import net.dv8tion.jda.api.interactions.commands.OptionMapping; import net.dv8tion.jda.api.interactions.commands.OptionType; import net.dv8tion.jda.api.interactions.commands.SlashCommandInteraction; import net.dv8tion.jda.api.interactions.commands.build.OptionData; -import org.apache.commons.text.StringEscapeUtils; import org.springframework.stereotype.Component; /** diff --git a/src/main/java/cc/fascinated/bat/features/spotify/command/LinkSubCommand.java b/src/main/java/cc/fascinated/bat/features/spotify/command/LinkSubCommand.java index a9b0345..8e9e9c1 100644 --- a/src/main/java/cc/fascinated/bat/features/spotify/command/LinkSubCommand.java +++ b/src/main/java/cc/fascinated/bat/features/spotify/command/LinkSubCommand.java @@ -6,8 +6,6 @@ import cc.fascinated.bat.command.BatCommand; import cc.fascinated.bat.command.CommandInfo; import cc.fascinated.bat.common.EmbedUtils; import cc.fascinated.bat.event.EventListener; -import cc.fascinated.bat.features.spotify.SpotifyFeature; -import cc.fascinated.bat.features.spotify.profile.SpotifyProfile; import cc.fascinated.bat.model.BatGuild; import cc.fascinated.bat.model.BatUser; import cc.fascinated.bat.service.SpotifyService; @@ -65,9 +63,6 @@ public class LinkSubCommand extends BatCommand implements EventListener { @Override public void onButtonInteraction(BatGuild guild, @NonNull BatUser user, @NonNull ButtonInteractionEvent event) { - if (guild == null) { - return; - } if (!event.getComponentId().equals("spotify_link")) { return; }