This commit is contained in:
parent
31e81363ac
commit
6af78c7da1
@ -42,13 +42,13 @@ public class CurrentSubCommand extends BatSubCommand {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!spotifyService.hasTrackPlaying(user)) {
|
// if (!spotifyService.hasTrackPlaying(user)) {
|
||||||
interaction.replyEmbeds(EmbedUtils.genericEmbed()
|
// interaction.replyEmbeds(EmbedUtils.genericEmbed()
|
||||||
.setDescription("You are not currently playing a track.")
|
// .setDescription("You are not currently playing a track.")
|
||||||
.build())
|
// .build())
|
||||||
.queue();
|
// .queue();
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
CurrentlyPlaying currentlyPlaying = spotifyService.getCurrentlyPlayingTrack(user);
|
CurrentlyPlaying currentlyPlaying = spotifyService.getCurrentlyPlayingTrack(user);
|
||||||
Track track = (Track) currentlyPlaying.getItem();
|
Track track = (Track) currentlyPlaying.getItem();
|
||||||
AlbumSimplified album = track.getAlbum();
|
AlbumSimplified album = track.getAlbum();
|
||||||
|
Loading…
Reference in New Issue
Block a user