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) {
2015 args.severity = null;2015 args.severity = null;
2016 }2016 }
20172017
2018 // Make sure that the value is a string
2019 value = String(value);
2020
2018 const title = args.title ? args.title : undefined;2021 const title = args.title ? args.title : undefined;
2019 const severity = args.severity ? args.severity : 'info';2022 const severity = args.severity ? args.severity : 'info';
20202023