Skip to content

Commit edd10a3

Browse files
Fix bug with /stop preventing use if queue was empty
1 parent 7f925b9 commit edd10a3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/technobot/commands/music/StopCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public StopCommand(TechnoBot bot) {
2525
@Override
2626
public void execute(SlashCommandInteractionEvent event) {
2727
MusicHandler musicHandler = GuildData.get(event.getGuild()).musicHandler;
28-
if (musicHandler == null || musicHandler.getQueue().isEmpty()) {
28+
if (musicHandler == null) {
2929
String text = "The music player is already stopped!";
3030
event.replyEmbeds(EmbedUtils.createError(text)).setEphemeral(true).queue();
3131
} else {

0 commit comments

Comments
 (0)