Update api.ts

This commit is contained in:
かっこかり 2024-11-26 09:21:43 +09:00 committed by GitHub
parent d43a7b9121
commit 4eea36bbec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -92,7 +92,7 @@ export function createAiScriptEnv(opts) {
utils.assertString(text); utils.assertString(text);
return values.STR(Misskey.nyaize(text.value)); return values.STR(Misskey.nyaize(text.value));
}), }),
'Mk:replaceMfm': values.FN_NATIVE(async ([text, fn], opts) => { 'Mfm:replaceTextNode': values.FN_NATIVE(async ([text, fn], opts) => {
utils.assertString(text); utils.assertString(text);
utils.assertFunction(fn); utils.assertFunction(fn);