Various bug fixes

This commit is contained in:
Max Isom 2020-03-17 19:42:28 -05:00
parent 15d4e251f2
commit c058ec95fe
7 changed files with 36 additions and 35 deletions

View file

@ -25,12 +25,12 @@ export default class implements Command {
public async execute(msg: Message, args: string []): Promise<void> {
const queue = this.queueManager.get(msg.guild!.id);
if (queue.get().length === 0) {
if (!queue.getCurrent()) {
await msg.channel.send(errorMsg('nothing is playing'));
return;
}
if (queue.get()[0].isLive) {
if (queue.getCurrent()?.isLive) {
await msg.channel.send(errorMsg('can\'t seek in a livestream'));
return;
}