feat: set default voice if found
This commit is contained in:
@@ -39,6 +39,8 @@ const cmd: Command = {
|
||||
}
|
||||
|
||||
await userData.set('tts_mode', modeName);
|
||||
if (selectedMode.defaultVoice)
|
||||
await userData.set('tts_voice', selectedMode.defaultVoice);
|
||||
await userData.save();
|
||||
|
||||
interaction.editReply(`TTS mode has been set to: ${modeName}.`);
|
||||
|
||||
Reference in New Issue
Block a user