text: const { MessageEmbed } = require("discord.js");
  const { canModifyQueue } = require("../util/Util");
  const i18n = require("../util/i18n");
  
  module.exports = {
    name: "shuffle",
    aliases: ["sh"],
    cooldown: 5,
    description: i18n.__("shuffle.description"),
    execute(message) {
  message.delete({timeout: 5000})
      const queue = message.client.queue.get(message.guild.id);
      if (!queue) return message.channel.send(i18n.__("shuffle.errorNotQueue")).then(msg => msg.delete({timeout: 5000})).catch(console.error);
      if (!canModifyQueue(message.member)) return i18n.__("common.errorNotChannel");
  
      let songs = queue.songs;
      for (let i = songs.length - 1; i > 1; i--) {
        let j = 1 + Math.floor(Math.random() * i);
        [songs[i], songs[j]] = [songs[j], songs[i]];
      }
      queue.songs = songs;
      message.client.queue.set(message.guild.id, queue);
  const shuffle = new MessageEmbed()
        .setTitle(i18n.__mf("shuffle.result", { author: message.author }))
        .setColor("RANDOM")
      queue.textChannel.send(shuffle).then(msg => msg.delete({timeout: 10000})).catch(console.error);
    }
  };
  