/reasoning-set: fix at argument

This commit is contained in:
Cohee
2025-01-28 21:03:44 +02:00
parent 0c9b301a57
commit 35e8561bff

View File

@ -146,7 +146,7 @@ function registerReasoningSlashCommands() {
}),
],
callback: async (args, value) => {
const messageId = !isNaN(Number(args[0])) ? Number(args[0]) : chat.length - 1;
const messageId = !isNaN(Number(args.at)) ? Number(args.at) : chat.length - 1;
const message = chat[messageId];
if (!message?.extra) {
return '';