Fixed tts add & delete commands

This commit is contained in:
Tom 2024-10-22 07:49:09 +00:00
parent ed318ca6e8
commit 77465598c1

View File

@ -36,13 +36,13 @@ namespace TwitchChatTTS.Chat.Commands
{ {
b.CreateStaticInputParameter("add", b => b.CreateStaticInputParameter("add", b =>
{ {
b.CreateVoiceNameParameter("voiceName", false) b.CreateUnvalidatedParameter("voiceName")
.CreateCommand(new AddTTSVoiceCommand(_user, _logger)); .CreateCommand(new AddTTSVoiceCommand(_user, _logger));
}) })
.AddAlias("insert", "add") .AddAlias("insert", "add")
.CreateStaticInputParameter("delete", b => .CreateStaticInputParameter("delete", b =>
{ {
b.CreateVoiceNameParameter("voiceName", true) b.CreateVoiceNameParameter("voiceName", false)
.CreateCommand(new DeleteTTSVoiceCommand(_user, _logger)); .CreateCommand(new DeleteTTSVoiceCommand(_user, _logger));
}) })
.AddAlias("del", "delete") .AddAlias("del", "delete")