mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-04 14:38:49 +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 = {
|
module.exports.ffmpegFilterOptions = {
|
||||||
threadAmount: '2',
|
threadAmount: '2',
|
||||||
forceNormalizerByBassBoost: true,
|
forceNormalizerByBassBoost: true,
|
||||||
|
maxFilters: 10,
|
||||||
availableFilters: [
|
availableFilters: [
|
||||||
{
|
{
|
||||||
label: 'Bass boost',
|
label: 'Bass boost',
|
||||||
|
|||||||
@@ -198,7 +198,7 @@ class FiltersCommand extends BaseSlashCommandInteraction {
|
|||||||
: translator('commands.filters.selectFilterPlaceholder')
|
: translator('commands.filters.selectFilterPlaceholder')
|
||||||
)
|
)
|
||||||
.setMinValues(0)
|
.setMinValues(0)
|
||||||
.setMaxValues(1)
|
.setMaxValues(filterProvider === 'ffmpeg' ? ffmpegFilterOptions.maxFilters : 1)
|
||||||
.addOptions(filterOptions)
|
.addOptions(filterOptions)
|
||||||
.toJSON();
|
.toJSON();
|
||||||
|
|
||||||
|
|||||||
Vendored
+1
@@ -124,6 +124,7 @@ export type FilterOption = {
|
|||||||
export type FFmpegFilterOptions = {
|
export type FFmpegFilterOptions = {
|
||||||
threadAmount: string;
|
threadAmount: string;
|
||||||
forceNormalizerByBassBoost: boolean;
|
forceNormalizerByBassBoost: boolean;
|
||||||
|
maxFilters: number;
|
||||||
availableFilters: FFmpegFilterOption[];
|
availableFilters: FFmpegFilterOption[];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user