mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Update /ask toasts to warnings for consistency
This commit is contained in:
@ -2481,7 +2481,7 @@ async function askCharacter(args, text) {
|
|||||||
// Not supported in group chats
|
// Not supported in group chats
|
||||||
// TODO: Maybe support group chats?
|
// TODO: Maybe support group chats?
|
||||||
if (selected_group) {
|
if (selected_group) {
|
||||||
toastr.error('Cannot run /ask command in a group chat!');
|
toastr.warning('Cannot run /ask command in a group chat!');
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2501,7 +2501,7 @@ async function askCharacter(args, text) {
|
|||||||
// Find the character
|
// Find the character
|
||||||
const chId = characters.findIndex((e) => e.name === name || e.avatar === name);
|
const chId = characters.findIndex((e) => e.name === name || e.avatar === name);
|
||||||
if (!characters[chId] || chId === -1) {
|
if (!characters[chId] || chId === -1) {
|
||||||
toastr.error('Character not found.');
|
toastr.warning('Character not found.');
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user