diff options
Diffstat (limited to 'src/commands/dev/reload.ts')
-rw-r--r-- | src/commands/dev/reload.ts | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/commands/dev/reload.ts b/src/commands/dev/reload.ts index 4a69098..fdb669f 100644 --- a/src/commands/dev/reload.ts +++ b/src/commands/dev/reload.ts @@ -46,11 +46,7 @@ export default class ReloadCommand extends BushCommand { return message.util.send(`🔁 Successfully reloaded! (${new Date().getTime() - s.getTime()}ms)`); } catch (e) { return message.util.send( - `An error occurred while reloading:\n${await this.client.util.codeblock( - typeof e === 'object' ? e?.stack : e, - 2048 - 34, - 'js' - )}` + `An error occurred while reloading:\n${await this.client.util.codeblock(e?.stack || e, 2048 - 34, 'js')}` ); } } |