mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-04 14:38:49 +00:00
fix: also show emoji for enabled filters, show to user that normalizer gets enabled when selecting bass boost.
This commit is contained in:
1 parent
21b15a10a0
commit
aebc726e45
1 file changed
+8
-11
@@ -132,8 +132,6 @@ module.exports = {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
let filtersEnabledByUser = [...confirmation.values];
|
|
||||||
|
|
||||||
// if bassboost is enabled and not normalizer, also enable normalizer to avoid distrorion
|
// if bassboost is enabled and not normalizer, also enable normalizer to avoid distrorion
|
||||||
if (
|
if (
|
||||||
(confirmation.values.includes('bassboost_low') || confirmation.values.includes('bassboost')) &&
|
(confirmation.values.includes('bassboost_low') || confirmation.values.includes('bassboost')) &&
|
||||||
@@ -161,16 +159,15 @@ module.exports = {
|
|||||||
.setDescription(
|
.setDescription(
|
||||||
`**${
|
`**${
|
||||||
embedOptions.icons.success
|
embedOptions.icons.success
|
||||||
} Filters toggled**\nNow using these filters:\n${filtersEnabledByUser
|
} Filters toggled**\nNow using these filters:\n${confirmation.values
|
||||||
.map(
|
.map((enabledFilter) => {
|
||||||
(enabledFilter) =>
|
let filter = ffmpegFilterOptions.availableFilters.find(
|
||||||
`\`${
|
|
||||||
ffmpegFilterOptions.availableFilters.find(
|
|
||||||
(filter) => enabledFilter == filter.value
|
(filter) => enabledFilter == filter.value
|
||||||
).label
|
);
|
||||||
}\``
|
|
||||||
)
|
return `- **${filter.emoji} ${filter.label}**`;
|
||||||
.join(', ')}.`
|
})
|
||||||
|
.join('\n')}`
|
||||||
)
|
)
|
||||||
.setColor(embedOptions.colors.success)
|
.setColor(embedOptions.colors.success)
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in new issue
Block a user