Fix Option builder for bassboost and normalize using addChoiceOption

This commit is contained in:
NoLogicAlan committed 2026-10-22 02:16:56 +03:00
1 parent ee1b9be917
commit 784458f387
4 files changed
+8 -17

No files matched your search

+3 -8
View File
@@ -55,16 +55,11 @@ export const command = new CommandBuilder()
.setName("bassboost") .setName("bassboost")
.setDescription("Apply a low, medium, or hard bass boost equalizer effect.", "commands.bassboost") .setDescription("Apply a low, medium, or hard bass boost equalizer effect.", "commands.bassboost")
.setCategory("music") .setCategory("music")
.addStringOption(o => .addChoiceOption(o =>
o.setName("level") 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) .setRequired(false)
.addChoices(
{ name: "low", value: "low" },
{ name: "medium", value: "medium" },
{ name: "hard", value: "hard" },
{ name: "off", value: "off" }
)
) )
.addAliases("bb", "bass"); .addAliases("bb", "bass");
+3 -7
View File
@@ -17,15 +17,11 @@ export const command = new CommandBuilder()
.setName("normalize") .setName("normalize")
.setDescription("Toggle dynamic volume normalization (ReplayGain leveling) across music sources.", "commands.normalize") .setDescription("Toggle dynamic volume normalization (ReplayGain leveling) across music sources.", "commands.normalize")
.setCategory("music") .setCategory("music")
.addStringOption(o => .addChoiceOption(o =>
o.setName("state") 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) .setRequired(false)
.addChoices(
{ name: "on", value: "on" },
{ name: "off", value: "off" },
{ name: "status", value: "status" }
)
) )
.addAliases("replaygain", "volumenormalize", "norm"); .addAliases("replaygain", "volumenormalize", "norm");
+1 -1
View File
@@ -18,7 +18,7 @@ export const command = new CommandBuilder()
.setCategory("music") .setCategory("music")
.addNumberOption(o => .addNumberOption(o =>
o.setName("pitch") 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) .setRequired(false)
) )
.addAliases("semitone", "tune"); .addAliases("semitone", "tune");
+1 -1
View File
@@ -18,7 +18,7 @@ export const command = new CommandBuilder()
.setCategory("music") .setCategory("music")
.addNumberOption(o => .addNumberOption(o =>
o.setName("rate") 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) .setRequired(false)
) )
.addAliases("rate", "tempo"); .addAliases("rate", "tempo");