From f8fc9a07bef464730ca667c754372c3ccaf49304 Mon Sep 17 00:00:00 2001 From: Hazem Krimi Date: Thu, 14 May 2020 12:00:36 +0100 Subject: [PATCH] fixed seek command --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 2bc1f45..6f221f6 100644 --- a/index.js +++ b/index.js @@ -39,7 +39,7 @@ Structures.extend('Guild', Guild => { const voiceChannel = !message.guild.music.seek ? queue[0].voiceChannel : message.guild.music.nowPlaying.voiceChannel; const connection = await voiceChannel.join(); - + message.guild.music.paused = false; let dispatcher; @@ -68,8 +68,8 @@ Structures.extend('Guild', Guild => { if (queue[0].type !== 'other') embed.addField('By', queue[0].by); embed.addField('Duration', queue[0].duration); await message.say({ embed }); + return queue.shift(); } - return queue.shift(); }); dispatcher.on('finish', async () => {