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.CreateVoiceNameParameter("voiceName", false)
b.CreateUnvalidatedParameter("voiceName")
.CreateCommand(new AddTTSVoiceCommand(_user, _logger));
})
.AddAlias("insert", "add")
.CreateStaticInputParameter("delete", b =>
{
b.CreateVoiceNameParameter("voiceName", true)
b.CreateVoiceNameParameter("voiceName", false)
.CreateCommand(new DeleteTTSVoiceCommand(_user, _logger));
})
.AddAlias("del", "delete")