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/reload.ts2
-rw-r--r--src/commands/dev/sh.ts2
-rw-r--r--src/commands/utilities/decode.ts2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/commands/admin/channelPermissions.ts b/src/commands/admin/channelPermissions.ts
index dac7117..15f1260 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', e.stack);
+ void client.console.error('channelPermissions', util.formatError(e));
failedChannels.push(channel);
}
}
diff --git a/src/commands/dev/reload.ts b/src/commands/dev/reload.ts
index d874c83..17802b0 100644
--- a/src/commands/dev/reload.ts
+++ b/src/commands/dev/reload.ts
@@ -47,7 +47,7 @@ export default class ReloadCommand extends BushCommand {
} catch (e) {
if (output!) void client.logger.error('reloadCommand', output);
return message.util.send(
- `An error occurred while reloading:\n${await util.codeblock(e?.stack || e, 2048 - 34, 'js', true)}`
+ `An error occurred while reloading:\n${await util.codeblock(util.formatError(e), 2048 - 34, 'js', true)}`
);
}
}
diff --git a/src/commands/dev/sh.ts b/src/commands/dev/sh.ts
index be6a015..e071e73 100644
--- a/src/commands/dev/sh.ts
+++ b/src/commands/dev/sh.ts
@@ -82,7 +82,7 @@ export default class ShCommand extends BushCommand {
.setColor(util.colors.error)
.spliceFields(1, 1);
- embed.addFields([{ name: '📤 Output', value: await util.codeblock(e?.stack, 1024, 'js', true) }]);
+ embed.addFields([{ name: '📤 Output', value: await util.codeblock(util.formatError(e), 1024, 'js', true) }]);
}
await message.util.edit({ embeds: [embed] });
}
diff --git a/src/commands/utilities/decode.ts b/src/commands/utilities/decode.ts
index 729cf35..7cb0e83 100644
--- a/src/commands/utilities/decode.ts
+++ b/src/commands/utilities/decode.ts
@@ -65,7 +65,7 @@ export default class DecodeCommand extends BushCommand {
decodedEmbed.setColor(util.colors.error).addFields([
{
name: `📤 Error ${encodeOrDecode.slice(1)}ing`,
- value: await util.inspectCleanRedactCodeblock(error?.stack ?? error)
+ value: await util.inspectCleanRedactCodeblock(util.formatError(error))
}
]);
}