From 4e7793685c9093b5e3006fd49ccb599a26abce52 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Mon, 6 May 2024 00:58:51 -0400 Subject: [PATCH] Fix --- commands/util/eval.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/util/eval.js b/commands/util/eval.js index 745692fe..614499dc 100644 --- a/commands/util/eval.js +++ b/commands/util/eval.js @@ -77,8 +77,8 @@ module.exports = class EvalCommand extends Command { } } - makeResultMessages(result, hrDiff, input = null, lang = 'javascript') { - const inspected = util.inspect(result, { depth: 0 }) + makeResultMessages(result, hrDiff, input = null, lang = 'javascript', inspect = true) { + const inspected = (inspect ? util.inspect(result, { depth: 0 }) : result) .replace(nlPattern, '\n') .replace(this.sensitivePattern, '--snip--'); const split = inspected.split('\n');