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.

2a00253937c9a28d7d113c5a023f5684c0eeb2ef

Wolfsblvt <wolfsblvt@gmail.com>

1 files changed, +0 -8Ignore whitespace
public/scripts/slash-commands.js+0 -8
@@ -5234,14 +5234,6 @@ async function createCharacterCallback(args) {
5234 toastr.warning(t`Character name is required`);5234 toastr.warning(t`Character name is required`);
5235 return '';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 }
52455237
5246 // Build the character data object matching the server's expected format5238 // Build the character data object matching the server's expected format
5247 const characterData = {5239 const characterData = {