From 58f8a27921682789e1201740abe4a43ac80547cf Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Fri, 12 Feb 2021 18:24:21 -0500 Subject: [PATCH] Fix resume --- commands/util-voice/resume.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/commands/util-voice/resume.js b/commands/util-voice/resume.js index 1d505291..854e6332 100644 --- a/commands/util-voice/resume.js +++ b/commands/util-voice/resume.js @@ -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.'); }