From 35e8561bff72690bb52b78daabed68f8798b0d70 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Tue, 28 Jan 2025 21:03:44 +0200 Subject: [PATCH] /reasoning-set: fix at argument --- public/scripts/reasoning.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/scripts/reasoning.js b/public/scripts/reasoning.js index c9b0efc3b..19dc024a6 100644 --- a/public/scripts/reasoning.js +++ b/public/scripts/reasoning.js @@ -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 '';