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")
.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");
+3 -7
View File
@@ -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
View File
@@ -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
View File
@@ -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");