Fix resume

This commit is contained in:
Dragon Fire
2021-02-12 18:24:21 -05:00
parent fbc5991bf8
commit 58f8a27921
+4
View File
@@ -22,6 +22,10 @@ module.exports = class ResumeCommand extends Command {
if (!this.client.dispatchers.has(msg.guild.id)) {
return msg.reply(`I am not currently playing audio in this server.`);
}
// Temporary workaround: https://github.com/discordjs/discord.js/issues/5300
this.client.dispatchers.get(msg.guild.id).pause();
this.client.dispatchers.get(msg.guild.id).resume();
this.client.dispatchers.get(msg.guild.id).pause();
this.client.dispatchers.get(msg.guild.id).resume();
return msg.reply('Resumed playing.');
}