Update /ask toasts to warnings for consistency

This commit is contained in:
Wolfsblvt 2024-09-30 18:38:17 +02:00
parent 1128de91f4
commit 1c65a5badd

View File

@ -2481,7 +2481,7 @@ async function askCharacter(args, text) {
// Not supported in group chats
// TODO: Maybe support group chats?
if (selected_group) {
toastr.error('Cannot run /ask command in a group chat!');
toastr.warning('Cannot run /ask command in a group chat!');
return '';
}
@ -2501,7 +2501,7 @@ async function askCharacter(args, text) {
// Find the character
const chId = characters.findIndex((e) => e.name === name || e.avatar === name);
if (!characters[chId] || chId === -1) {
toastr.error('Character not found.');
toastr.warning('Character not found.');
return '';
}