Fixed skip
This commit is contained in:
parent
1d6180c507
commit
0ddd39156a
1 changed files with 6 additions and 1 deletions
|
@ -174,6 +174,7 @@ impl MediaData {
|
||||||
} else {
|
} else {
|
||||||
let first = playlist.remove(0);
|
let first = playlist.remove(0);
|
||||||
|
|
||||||
|
handler.stop();
|
||||||
*song = handler.play_returning(first.source);
|
*song = handler.play_returning(first.source);
|
||||||
|
|
||||||
super::check_msg(channel_id.say(format!("Playing song: {}", first.name)));
|
super::check_msg(channel_id.say(format!("Playing song: {}", first.name)));
|
||||||
|
@ -537,9 +538,13 @@ impl serenity::framework::standard::Command for Skip {
|
||||||
} else {
|
} else {
|
||||||
let first = playlist.remove(0);
|
let first = playlist.remove(0);
|
||||||
|
|
||||||
|
handler.stop();
|
||||||
*song = Some(handler.play_returning(first.source));
|
*song = Some(handler.play_returning(first.source));
|
||||||
|
|
||||||
super::check_msg(msg.channel_id.say(format!("Playing song: {}", first.name)));
|
super::check_msg(
|
||||||
|
msg.channel_id
|
||||||
|
.say(format!("Skipped current song, now playing: {}", first.name)),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue