aboutsummaryrefslogtreecommitdiff
path: root/src/commands
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands')
-rw-r--r--src/commands/admin/channelPermissions.ts2
-rw-r--r--src/commands/dev/eval.ts4
-rw-r--r--src/commands/dev/javascript.ts6
3 files changed, 6 insertions, 6 deletions
diff --git a/src/commands/admin/channelPermissions.ts b/src/commands/admin/channelPermissions.ts
index 4091343..d58a7da 100644
--- a/src/commands/admin/channelPermissions.ts
+++ b/src/commands/admin/channelPermissions.ts
@@ -83,7 +83,7 @@ export default class ChannelPermissionsCommand extends BushCommand {
{ reason: 'Changing overwrites for mass channel perms command' }
);
} catch (e) {
- void client.console.error('channelPermissions', util.formatError(e, true));
+ void client.console.error('channelPermissions', util.formatError(e, false));
failedChannels.push(channel);
}
}
diff --git a/src/commands/dev/eval.ts b/src/commands/dev/eval.ts
index d4c9331..8af280d 100644
--- a/src/commands/dev/eval.ts
+++ b/src/commands/dev/eval.ts
@@ -263,12 +263,12 @@ export default class EvalCommand extends BushCommand {
if (inputTS) embed.addFields([{ name: ':inbox_tray: Input (typescript)', value: inputTS }]);
embed.addFields([{ name: `:inbox_tray: Input${inputTS ? ' (transpiled javascript)' : ''}`, value: inputJS }]);
- const output = await this.codeblock(rawResult, 'ansi', {
+ const output = await this.codeblock(rawResult, 'js', {
depth: selDepth ?? 0,
showHidden: hidden,
showProxy: true,
inspectStrings: !noInspectStrings,
- colors: true
+ colors: false
});
const methods = !err && showMethods ? await this.codeblock(rawResult, 'ts', { methods: true }) : undefined;
diff --git a/src/commands/dev/javascript.ts b/src/commands/dev/javascript.ts
index 373f149..be8fdce 100644
--- a/src/commands/dev/javascript.ts
+++ b/src/commands/dev/javascript.ts
@@ -60,11 +60,11 @@ export default class JavascriptCommand extends BushCommand {
const rawOutput = /^(9\s*?\+\s*?10)|(10\s*?\+\s*?9)$/.test(code)
? '21'
: new VM({ eval: true, wasm: true, timeout: 1_000, fixAsync: true }).run(`${code}`);
- const output = await util.inspectCleanRedactCodeblock(rawOutput, 'ansi', {
+ const output = await util.inspectCleanRedactCodeblock(rawOutput, 'js', {
depth: args.sel_depth ?? 0,
getters: true,
inspectStrings: true,
- colors: true
+ colors: false
});
embed.setTitle(`${util.emojis.successFull} Successfully Evaluated Expression`).setColor(util.colors.success);
@@ -76,7 +76,7 @@ export default class JavascriptCommand extends BushCommand {
embed.setTitle(`${util.emojis.errorFull} Unable to Evaluate Expression`).setColor(util.colors.error);
embed.addFields([
{ name: '📥 Input', value: input },
- { name: '📤 Error', value: await util.inspectCleanRedactCodeblock(e, 'ansi', { colors: true }) }
+ { name: '📤 Error', value: await util.inspectCleanRedactCodeblock(e, 'js', { colors: false }) }
]);
}