Skip to content

Commit 70b63f4

Browse files
committed
feat(AxonCommandError): err property
1 parent 1eb4c8a commit 70b63f4

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/Errors/AxonCommandError.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ class AxonCommandError extends Error {
2525
super();
2626

2727
this.context = commandContext;
28+
this.err = err;
2829

2930
const short = `[${this.context.moduleLabel}] - ${this.context.commandLabel}] | `
3031
+ `${this.context.dm ? `DM: ${this.context.callerID}` : `Guild: ${this.context.guildID}`} / Channel: ${this.context.channelID}\n`;

types/Error/AxonCommandError.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { CommandContext } from '..';
1212
*/
1313
export declare class AxonCommandError extends Error {
1414
public context: CommandContext;
15+
public err: Error;
1516
readonly short: string;
1617
public message: string;
1718
public stack: string;

0 commit comments

Comments
 (0)