| 403 | } | 403 | } |
| 404 | | 404 | |
| 405 | if (description.includes('{{char}}') || description.includes('{{user}}')) { | 405 | if (description.includes('{{char}}') || description.includes('{{user}}')) { |
| 406 | await delay(500); | | |
| 407 | const confirm = await Popup.show.confirm('Persona Description Macros', 'This character has a description that uses <code>{{char}}</code> or <code>{{user}}</code> macros. Do you want to swap them in the persona description?'); | 406 | const confirm = await Popup.show.confirm('Persona Description Macros', 'This character has a description that uses <code>{{char}}</code> or <code>{{user}}</code> macros. Do you want to swap them in the persona description?'); |
| 408 | if (confirm) { | 407 | if (confirm) { |
| 409 | description = description.replace(/{{char}}/gi, '{{personaChar}}').replace(/{{user}}/gi, '{{personaUser}}'); | 408 | description = description.replace(/{{char}}/gi, '{{personaChar}}').replace(/{{user}}/gi, '{{personaUser}}'); |