text: const Discord = require("discord.js");
  const {
      Utils
  } = require("erela.js");
  
  
  exports.run = async (client, message, args) => {
      const player = client.music.players.get(message.guild.id);
      const voiceChannel = message.member.voice.channel;
      const voiceChannelID = message.member.voice.channelID;
  
      let msg = 'usage:\nseek 1h2m3s \nwhere **h** is hour **m** is min **s** is sec\nexample:\n1) seek 15m4s\t2) seek 1h 24s'
      if (!player) return message.channel.send("No song/s currently playing")
      if (!voiceChannel || voiceChannelID !== player.voiceChannel.id) return message.channel.send("You need to be in a voice channel to use the seek command.");
      if (!args[0]) return message.channel.send(msg);
      const {
          duration,
          isSeekable
      } = player.queue[0];
      let time = 0;
      if (!isSeekable) return message.channel.send('Cannot Seek this Song')
      function seek() {
          return new Promise(resolve => {
              args.forEach(arg => {
                  tr = Utils.parseTime(arg) //
                  time = time + tr
              })
  
              if (time == 0) return message.channel.send(msg);
              if (time > duration) return message.channel.send('Seeking duration is greater than the track duration');
              player.seek(time);
              resolve();
  
          })
      }
  
      seek().then(message.channel.send(`Successfully seeked to \`${Utils.formatTime(time, true)}/${Utils.formatTime(duration, true)}\``));
  
  }
  
  
  exports.conf = {
      enabled: true,
      guildOnly: true,
      aliases: [],
      permLevel: "User"
  };
  
  exports.help = {
      name: "seek",
      description: "seeks the audio back and fourth",
      usage: "seek <time>",
      category: "Music",
      example: "seek 1h15m2s"
  };