text: // Dependecies
  const { MessageEmbed } = require('discord.js'),
  	Command = require('../../structures/Command.js');
  
  module.exports = class Back extends Command {
  	constructor(bot) {
  		super(bot, {
  			name: 'volume',
  			dirname: __dirname,
  			aliases: ['vol'],
  			botPermissions: ['SEND_MESSAGES', 'EMBED_LINKS'],
  			description: 'Changes the volume of the song',
  			usage: 'volume <Number>',
  			cooldown: 3000,
  			examples: ['volume 50'],
  		});
  	}
  
  	// Run command
  	async run(bot, message, args, settings) {
  		// Check if the member has role to interact with music plugin
  		if (message.guild.roles.cache.get(settings.MusicDJRole)) {
  			if (!message.member.roles.cache.has(settings.MusicDJRole)) {
  				return message.error(settings.Language, 'MUSIC/MISSING_DJROLE').then(m => m.delete({ timeout: 10000 }));
  			}
  		}
  
  		// Check that a song is being played
  		const player = bot.manager.players.get(message.guild.id);
  		if (!player) return message.error(settings.Language, 'MUSIC/NO_QUEUE').then(m => m.delete({ timeout: 5000 }));
  
  		// Check that user is in the same voice channel
  		if (message.member.voice.channel.id !== player.voiceChannel) return message.error(settings.Language, 'MUSIC/NOT_VOICE').then(m => m.delete({ timeout: 5000 }));
  
  		// Make sure a number was entered
  		if (!args[0]) {
  			const embed = new MessageEmbed()
  				.setColor(message.member.displayHexColor)
  				.setDescription(message.translate(settings.Language, 'MUSIC/SOUND_CURRENT', player.volume));
  			return message.channel.send(embed);
  		}
  
  		// make sure the number was between 0 and 1000
  		if (Number(args[0]) <= 0 || Number(args[0]) > 1000) {
  			return message.error(settings.Language, 'MUSIC/TOO_HIGH');
  		}
  
  		// Update volume
  		player.setVolume(Number(args));
  		const embed = new MessageEmbed()
  			.setColor(message.member.displayHexColor)
  			.setDescription(message.translate(settings.Language, 'MUSIC/SOUND_SET', player.volume));
  		return message.channel.send(embed);
  	}
  };
  