fix: enable normalizer filter when bassboost is chosen

This commit is contained in:
Marius Begby committed 2023-07-24 13:03:38 +02:00
1 parent b3a5730b4b
commit b236371abc
1 file changed
+7 -1
+7 -1
View File
@@ -132,8 +132,14 @@ module.exports = {
});
}
let filtersToEnable = confirmation.values;
// if bassboost is enabled, also enable normalizer to avoid distrorion
if (confirmation.values.includes('bassboost_low') || confirmation.values.includes('bassboost')) {
filtersToEnable.push('normalizer');
}
// Enable provided filters
queue.filters.ffmpeg.toggle(confirmation.values);
queue.filters.ffmpeg.toggle(filtersToEnable);
logger.debug(
`[Shard ${interaction.guild.shardId}] Enabled filters ${confirmation.values.join(', ')} for command ${