text: const {
  	MessageEmbed,
  	Message
  } = require("discord.js");
  const config = require("../../botconfig/config.json");
  const ee = require("../../botconfig/embed.json");
  const settings = require("../../botconfig/settings.json");
  const {
  	check_if_dj
  } = require("../../handlers/functions")
  const FiltersSettings = require("../../botconfig/filters.json");
  module.exports = {
  	name: "custombassboost", //the command name for the Slash Command
  
  	category: "Filter",
  	usage: "custombassboost <Gain (0-20)>",
  	aliases: ["bassboost", "bb", "bass", "custombass", "cbassboost", "cbass", "cbb", "custombb"],
  
  	description: "Sets a custom Bassboost with Gain!", //the command description for Slash Command Overview
  	cooldown: 5,
  	requiredroles: [], //Only allow specific Users with a Role to execute a Command [OPTIONAL]
  	alloweduserids: [], //Only allow specific Users to execute a Command [OPTIONAL]
  	run: async (client, message, args) => {
  		try {
  			const {
  				member,
  				guildId,
  				guild
  			} = message;
  			const {
  				channel
  			} = member.voice;
  			if (!channel) return message.reply({
  				embeds: [
  					new MessageEmbed().setColor(ee.wrongcolor).setTitle(`${client.allEmojis.x} **Please join ${guild.me.voice.channel ? "__my__" : "a"} VoiceChannel First!**`)
  				],
  
  			})
  			if (channel.guild.me.voice.channel && channel.guild.me.voice.channel.id != channel.id) {
  				return message.reply({
  					embeds: [new MessageEmbed()
  						.setColor(ee.wrongcolor)
  						.setFooter(ee.footertext, ee.footericon)
  						.setTitle(`${client.allEmojis.x} Join __my__ Voice Channel!`)
  						.setDescription(`<#${guild.me.voice.channel.id}>`)
  					],
  				});
  			}
  			try {
  				let newQueue = client.distube.getQueue(guildId);
  				if (!newQueue || !newQueue.songs || newQueue.songs.length == 0) return message.reply({
  					embeds: [
  						new MessageEmbed().setColor(ee.wrongcolor).setTitle(`${client.allEmojis.x} **I am nothing Playing right now!**`)
  					],
  
  				})
  				if (check_if_dj(client, member, newQueue.songs[0])) {
  					return message.reply({
  						embeds: [new MessageEmbed()
  							.setColor(ee.wrongcolor)
  							.setFooter(ee.footertext, ee.footericon)
  							.setTitle(`${client.allEmojis.x}**You are not a DJ and not the Song Requester!**`)
  							.setDescription(`**DJ-ROLES:**\n> ${check_if_dj(client, member, newQueue.songs[0])}`)
  						],
  					});
  				}
  				if (!args[0]) {
  					return message.reply({
  						embeds: [
  							new MessageEmbed()
  							.setColor(ee.wrongcolor)
  							.setFooter(ee.footertext, ee.footericon)
  							.setTitle(`${client.allEmojis.x} **Please add a Bassboost-Gain between 0 and 20!**`)
  						],
  					})
  				}
  				let bass_gain = parseInt(args[0])
  
  				if (bass_gain > 20 || bass_gain < 0) {
  					return message.reply({
  						embeds: [
  							new MessageEmbed()
  							.setColor(ee.wrongcolor)
  							.setFooter(ee.footertext, ee.footericon)
  							.setTitle(`${client.allEmojis.x} **The Bassboost Gain must be between 0 and 20!**`)
  						],
  					})
  				}
  				FiltersSettings.custombassboost = `bass=g=${bass_gain},dynaudnorm=f=200`;
  				client.distube.filters = FiltersSettings;
  				//add old filters so that they get removed 	
  				//if it was enabled before then add it
  				if (newQueue.filters.includes("custombassboost")) {
  					await newQueue.setFilter(["custombassboost"]);
  				}
  				await newQueue.setFilter(["custombassboost"]);
  				message.reply({
  					embeds: [new MessageEmbed()
  					  .setColor(ee.color)
  					  .setTimestamp()
  					  .setTitle(`♨️ **Set a Bassboost to ${bass_gain}!**`)
  					  .setFooter(`💢 Action by: ${member.user.tag}`, member.user.displayAvatarURL({dynamic: true}))]
  				})
  			} catch (e) {
  				console.log(e.stack ? e.stack : e)
  				message.reply({
  					content: `${client.allEmojis.x} | Error: `,
  					embeds: [
  						new MessageEmbed().setColor(ee.wrongcolor)
  						.setDescription(`\`\`\`${e}\`\`\``)
  					],
  
  				})
  			}
  		} catch (e) {
  			console.log(String(e.stack).bgRed)
  		}
  	}
  }
  // Copyright © Iconical | Discord Music Bot by Iconical
  // Github: https://github.com/iconicaal/
  // Github Music-Bot Repository: https://github.com/iconicaal/Icosical
  