Fix /echo mishandling non-string values

daa582bb7367867615d40ad79275f8de94ff45d6

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +3 -0Ignore whitespace
public/scripts/slash-commands.js+3 -0
@@ -2015,6 +2015,9 @@ async function echoCallback(args, value) {
20152015 args.severity = null;
20162016 }
20172017
2018+ // Make sure that the value is a string
2019+ value = String(value);
2020+
20182021 const title = args.title ? args.title : undefined;
20192022 const severity = args.severity ? args.severity : 'info';
20202023