| 2413 | promises.push(promise); |
| 2414 | continue; |
| 2415 | } |
| 2416 | } else { |
| 2417 | console.error(options.files + " is not currently implemented"); |
| 2418 | } |
| 2419 | } else if (input instanceof EmojiInput) { |
| 2420 | if (!input.value) { |
| 2421 | (build as any)[thing] = input.value; |
| 2422 | } else if (input.value.id) { |
| 2423 | (build as any)[thing] = input.value.id; |
| 2424 | } else if (input.value.emoji) { |
| 2425 | (build as any)[thing] = input.value.emoji; |
| 2426 | } |
| 2427 | continue; |
| 2428 | } |
| 2429 | (build as any)[thing] = input.value; |
| 2430 | } |
| 2431 | console.log("middle2"); |
| 2432 | await Promise.allSettled(promises); |
| 2433 | try { |
| 2434 | this.preprocessor(build); |
| 2435 | } catch (e) { |
| 2436 | if (e instanceof FormError) { |
| 2437 | this.handleError(e); |
| 2438 | } |
| 2439 | return; |