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 -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");