zumito-framework 1.22.0 → 1.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -95,6 +95,7 @@ export class MessageCreate extends FrameworkEvent {
|
|
|
95
95
|
errorHandler.handleError(error, {
|
|
96
96
|
command: commandInstance,
|
|
97
97
|
type: ErrorType.CommandRun,
|
|
98
|
+
message,
|
|
98
99
|
});
|
|
99
100
|
message.reply({
|
|
100
101
|
content: "An error ocurred while running this command.",
|
|
@@ -118,6 +119,7 @@ export class MessageCreate extends FrameworkEvent {
|
|
|
118
119
|
errorHandler.handleError(error, {
|
|
119
120
|
command: commandInstance,
|
|
120
121
|
type: ErrorType.CommandRun,
|
|
122
|
+
message,
|
|
121
123
|
});
|
|
122
124
|
message.reply({
|
|
123
125
|
content: "An error ocurred while running this command.",
|
|
@@ -8,6 +8,8 @@ type BaseErrorOptions = {
|
|
|
8
8
|
type CommandErrorOptions = BaseErrorOptions & {
|
|
9
9
|
type: ErrorType.CommandInstance | ErrorType.CommandLoad | ErrorType.CommandRun;
|
|
10
10
|
command: Command;
|
|
11
|
+
interaction?: any;
|
|
12
|
+
message?: any;
|
|
11
13
|
};
|
|
12
14
|
type ApiErrorOptions = BaseErrorOptions & {
|
|
13
15
|
type: ErrorType.Api;
|
|
@@ -128,6 +128,7 @@ export class InteractionHandler {
|
|
|
128
128
|
this.errorHandler.handleError(error, {
|
|
129
129
|
command: commandInstance,
|
|
130
130
|
type: ErrorType.CommandRun,
|
|
131
|
+
interaction,
|
|
131
132
|
});
|
|
132
133
|
interaction.reply({
|
|
133
134
|
content: "An error ocurred while running this command.",
|
|
@@ -139,6 +140,7 @@ export class InteractionHandler {
|
|
|
139
140
|
this.errorHandler.handleError(error, {
|
|
140
141
|
command: commandInstance,
|
|
141
142
|
type: ErrorType.CommandRun,
|
|
143
|
+
interaction,
|
|
142
144
|
});
|
|
143
145
|
interaction.reply({
|
|
144
146
|
content: "An error ocurred while running this command.",
|