From daa582bb7367867615d40ad79275f8de94ff45d6 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Tue, 9 Jul 2024 01:26:15 +0300 Subject: [PATCH] Fix /echo mishandling non-string values --- public/scripts/slash-commands.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/scripts/slash-commands.js b/public/scripts/slash-commands.js index a67aade2a..419ed81f3 100644 --- a/public/scripts/slash-commands.js +++ b/public/scripts/slash-commands.js @@ -2015,6 +2015,9 @@ async function echoCallback(args, value) { args.severity = null; } + // Make sure that the value is a string + value = String(value); + const title = args.title ? args.title : undefined; const severity = args.severity ? args.severity : 'info';