📝 Fix setFilters() method

This commit is contained in:
Androz2091 2020-07-23 08:04:04 +02:00
parent fda820432f
commit 5d5ab1b90c

View file

@ -115,14 +115,14 @@ class Player {
* const command = args.shift().toLowerCase(); * const command = args.shift().toLowerCase();
* *
* if(command === 'bassboost'){ * if(command === 'bassboost'){
* const bassboostEnabled = client.player.getQueue(message.guild.id); * const bassboostEnabled = client.player.getQueue(message.guild.id).filters.bassboost;
* if(!bassboostEnabled){ * if(!bassboostEnabled){
* client.player.updateFilters(message.guild.id, { * client.player.setFilters(message.guild.id, {
* bassboost: true * bassboost: true
* }); * });
* message.channel.send("Bassboost effect has been enabled!"); * message.channel.send("Bassboost effect has been enabled!");
* } else { * } else {
* client.player.updateFilters(message.guild.id, { * client.player.setFilters(message.guild.id, {
* bassboost: false * bassboost: false
* }); * });
* message.channel.send("Bassboost effect has been disabled!"); * message.channel.send("Bassboost effect has been disabled!");