mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
Fix Option builder for bassboost and normalize using addChoiceOption
This commit is contained in:
1 parent
ee1b9be917
commit
784458f387
4 files changed
+8
-17
No files matched your search
@@ -55,16 +55,11 @@ export const command = new CommandBuilder()
|
||||
.setName("bassboost")
|
||||
.setDescription("Apply a low, medium, or hard bass boost equalizer effect.", "commands.bassboost")
|
||||
.setCategory("music")
|
||||
.addStringOption(o =>
|
||||
.addChoiceOption(o =>
|
||||
o.setName("level")
|
||||
.setDescription("Bass boost level: 'low', 'medium', 'hard', or 'off'.")
|
||||
.setDescription("Bass boost level: 'low', 'medium', 'hard', or 'off'.", "options.bassboost.level")
|
||||
.addChoices("low", "medium", "hard", "off")
|
||||
.setRequired(false)
|
||||
.addChoices(
|
||||
{ name: "low", value: "low" },
|
||||
{ name: "medium", value: "medium" },
|
||||
{ name: "hard", value: "hard" },
|
||||
{ name: "off", value: "off" }
|
||||
)
|
||||
)
|
||||
.addAliases("bb", "bass");
|
||||
|
||||
|
||||
@@ -17,15 +17,11 @@ export const command = new CommandBuilder()
|
||||
.setName("normalize")
|
||||
.setDescription("Toggle dynamic volume normalization (ReplayGain leveling) across music sources.", "commands.normalize")
|
||||
.setCategory("music")
|
||||
.addStringOption(o =>
|
||||
.addChoiceOption(o =>
|
||||
o.setName("state")
|
||||
.setDescription("Turn on/off or check status ('on', 'off', 'status'). Omit to toggle.")
|
||||
.setDescription("Turn on/off or check status ('on', 'off', 'status'). Omit to toggle.", "options.normalize.state")
|
||||
.addChoices("on", "off", "status")
|
||||
.setRequired(false)
|
||||
.addChoices(
|
||||
{ name: "on", value: "on" },
|
||||
{ name: "off", value: "off" },
|
||||
{ name: "status", value: "status" }
|
||||
)
|
||||
)
|
||||
.addAliases("replaygain", "volumenormalize", "norm");
|
||||
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@ export const command = new CommandBuilder()
|
||||
.setCategory("music")
|
||||
.addNumberOption(o =>
|
||||
o.setName("pitch")
|
||||
.setDescription("Audio pitch multiplier between 0.5 and 2.0 (e.g. 1.25). Omit to reset to 1.0×.")
|
||||
.setDescription("Audio pitch multiplier between 0.5 and 2.0 (e.g. 1.25). Omit to reset to 1.0×.", "options.pitch.pitch")
|
||||
.setRequired(false)
|
||||
)
|
||||
.addAliases("semitone", "tune");
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@ export const command = new CommandBuilder()
|
||||
.setCategory("music")
|
||||
.addNumberOption(o =>
|
||||
o.setName("rate")
|
||||
.setDescription("Playback speed multiplier between 0.5 and 2.0 (e.g. 1.25). Omit to reset to 1.0×.")
|
||||
.setDescription("Playback speed multiplier between 0.5 and 2.0 (e.g. 1.25). Omit to reset to 1.0×.", "options.speed.rate")
|
||||
.setRequired(false)
|
||||
)
|
||||
.addAliases("rate", "tempo");
|
||||
|
||||
Reference in new issue
Block a user