diff --git a/public/scripts/slash-commands.js b/public/scripts/slash-commands.js index 9d730b1db..de438ecf6 100644 --- a/public/scripts/slash-commands.js +++ b/public/scripts/slash-commands.js @@ -2762,7 +2762,7 @@ export async function sendMessageAs(args, text) { const isSystem = bias && !removeMacros(mesText).length; const compact = isTrueBoolean(args?.compact); - const character = characters.find(x => x.name === name); + const character = characters.find(x => x.avatar === name) ?? characters.find(x => x.name === name); let force_avatar, original_avatar; if (character && character.avatar !== 'none') {