fixed seek command

This commit is contained in:
Hazem Krimi
2020-05-14 12:00:36 +01:00
parent 1cba913457
commit f8fc9a07be
+2 -2
View File
@@ -39,7 +39,7 @@ Structures.extend('Guild', Guild => {
const voiceChannel = !message.guild.music.seek ? queue[0].voiceChannel : message.guild.music.nowPlaying.voiceChannel; const voiceChannel = !message.guild.music.seek ? queue[0].voiceChannel : message.guild.music.nowPlaying.voiceChannel;
const connection = await voiceChannel.join(); const connection = await voiceChannel.join();
message.guild.music.paused = false; message.guild.music.paused = false;
let dispatcher; let dispatcher;
@@ -68,8 +68,8 @@ Structures.extend('Guild', Guild => {
if (queue[0].type !== 'other') embed.addField('By', queue[0].by); if (queue[0].type !== 'other') embed.addField('By', queue[0].by);
embed.addField('Duration', queue[0].duration); embed.addField('Duration', queue[0].duration);
await message.say({ embed }); await message.say({ embed });
return queue.shift();
} }
return queue.shift();
}); });
dispatcher.on('finish', async () => { dispatcher.on('finish', async () => {