Fixed skip

This commit is contained in:
hodasemi 2018-09-21 22:00:50 +02:00
parent 1d6180c507
commit 0ddd39156a

View file

@ -174,6 +174,7 @@ impl MediaData {
} else {
let first = playlist.remove(0);
handler.stop();
*song = handler.play_returning(first.source);
super::check_msg(channel_id.say(format!("Playing song: {}", first.name)));
@ -537,9 +538,13 @@ impl serenity::framework::standard::Command for Skip {
} else {
let first = playlist.remove(0);
handler.stop();
*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)),
);
}
}