evobot: Bug: pause command not working

getting this error when using pause cmd then try to use resume cmd the music will not back to play so these is the code :

const { canModifyQueue } = require("../util/EvobotUtil");


module.exports = {
  name: "pause",
    aliases: ["ps"],
  description: "pause songs from playing",
  execute(message) {
    const queue = message.client.queue.get(message.guild.id);
    if (!queue) return message.reply("There is nothing playing.").catch(console.error);
    if (!canModifyQueue(message.member)) return;

    if (queue.playing) {
      queue.playing = false;
      queue.connection.dispatcher.pause(true);
      return queue.textChannel.send(`paused`).catch(console.error);
    }
  }
};

and just the music not resume

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 39 (7 by maintainers)

Most upvoted comments

Are you guys solve it? I have the same problem.!

i have this issue too.

Please tell me how to fix if you guys got any solution I have the same problem when tapping on pause it pauses the song but won’t resume it, it’s the only problem. thanks.