mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-02 22:16:13 +00:00
fix: Fix not being able to select multiple ffmpeg filters
This commit is contained in:
1 parent
f9fa501125
commit
83462ab626
3 files changed
+3
-1
No files matched your search
@@ -152,6 +152,7 @@ module.exports.ipRotationConfig = {
|
||||
module.exports.ffmpegFilterOptions = {
|
||||
threadAmount: '2',
|
||||
forceNormalizerByBassBoost: true,
|
||||
maxFilters: 10,
|
||||
availableFilters: [
|
||||
{
|
||||
label: 'Bass boost',
|
||||
|
||||
@@ -198,7 +198,7 @@ class FiltersCommand extends BaseSlashCommandInteraction {
|
||||
: translator('commands.filters.selectFilterPlaceholder')
|
||||
)
|
||||
.setMinValues(0)
|
||||
.setMaxValues(1)
|
||||
.setMaxValues(filterProvider === 'ffmpeg' ? ffmpegFilterOptions.maxFilters : 1)
|
||||
.addOptions(filterOptions)
|
||||
.toJSON();
|
||||
|
||||
|
||||
Vendored
+1
@@ -124,6 +124,7 @@ export type FilterOption = {
|
||||
export type FFmpegFilterOptions = {
|
||||
threadAmount: string;
|
||||
forceNormalizerByBassBoost: boolean;
|
||||
maxFilters: number;
|
||||
availableFilters: FFmpegFilterOption[];
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user