no need for this, oops
Some checks failed
Deploy to Dokku / docker (ubuntu-latest) (push) Failing after 5s

This commit is contained in:
Lee 2024-07-06 00:42:14 +01:00
parent 3126935057
commit d45cd48ff6

@ -113,12 +113,6 @@ public class SpotifyFeature extends Feature {
CurrentlyPlaying currentlyPlaying = spotifyService.getCurrentlyPlayingTrack(user); CurrentlyPlaying currentlyPlaying = spotifyService.getCurrentlyPlayingTrack(user);
Track track = (Track) currentlyPlaying.getItem(); Track track = (Track) currentlyPlaying.getItem();
String trackName = track.getName(); String trackName = track.getName();
for (Action action : currentlyPlaying.getActions().getDisallows().getDisallowedActions()) {
if (action.equals(Action.SKIPPING_NEXT)) {
return EmbedUtils.errorEmbed()
.setDescription("%s Unable to skip the track.".formatted(Emojis.CROSS_MARK_EMOJI));
}
}
spotifyService.skipTrack(user); // Skip the track spotifyService.skipTrack(user); // Skip the track
// Get the new track // Get the new track