Fix description and firstMessage in /char-create command being optional Make description and firstMessage optional parameters in createCharacterCallback, allowing character creation with only a name. Remove validation checks that previously required these fields to be non-empty strings.
| @@ -5234,14 +5234,6 @@ async function createCharacterCallback(args) { | ||
| 5234 | 5234 | toastr.warning(t`Character name is required`); |
| 5235 | 5235 | return ''; |
| 5236 | 5236 | } |
| 5237 | - if (!description || typeof description !== 'string') { | |
| 5238 | - toastr.warning(t`Character description is required`); | |
| 5239 | - return ''; | |
| 5240 | - } | |
| 5241 | - if (!firstMessage || typeof firstMessage !== 'string') { | |
| 5242 | - toastr.warning(t`Character first message is required`); | |
| 5243 | - return ''; | |
| 5244 | - } | |
| 5245 | 5237 | |
| 5246 | 5238 | // Build the character data object matching the server's expected format |
| 5247 | 5239 | const characterData = { |