mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-01-20 21:41:32 +01:00
Update /ask toasts to warnings for consistency
This commit is contained in:
parent
1128de91f4
commit
1c65a5badd
@ -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 '';
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user