zumito-framework 1.22.0 → 1.22.2

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.",
@@ -3,18 +3,18 @@ export declare function createTestFramework(overrides?: Record<string, any>): {
3
3
  framework: any;
4
4
  client: {
5
5
  _listeners: Record<string, ((...args: any[]) => void)[]>;
6
- on: import("vitest").Mock<[event: string, cb: (...args: any[]) => void], void>;
7
- once: import("vitest").Mock<[event: string, cb: (...args: any[]) => void], void>;
8
- emit: import("vitest").Mock<[event: string, ...args: any[]], void>;
9
- login: import("vitest").Mock<any, any>;
10
- destroy: import("vitest").Mock<any, any>;
6
+ on: import("vitest").Mock<(event: string, cb: (...args: any[]) => void) => void>;
7
+ once: import("vitest").Mock<(event: string, cb: (...args: any[]) => void) => void>;
8
+ emit: import("vitest").Mock<(event: string, ...args: any[]) => void>;
9
+ login: import("vitest").Mock<import("@vitest/spy").Procedure>;
10
+ destroy: import("vitest").Mock<import("@vitest/spy").Procedure>;
11
11
  guilds: {
12
12
  cache: Map<any, any>;
13
- fetch: import("vitest").Mock<any, any>;
13
+ fetch: import("vitest").Mock<import("@vitest/spy").Procedure>;
14
14
  };
15
15
  channels: {
16
16
  cache: Map<any, any>;
17
- fetch: import("vitest").Mock<any, any>;
17
+ fetch: import("vitest").Mock<import("@vitest/spy").Procedure>;
18
18
  };
19
19
  user: {
20
20
  id: string;
@@ -22,7 +22,7 @@ export declare function createTestFramework(overrides?: Record<string, any>): {
22
22
  username: string;
23
23
  };
24
24
  users: {
25
- fetch: import("vitest").Mock<any, any>;
25
+ fetch: import("vitest").Mock<import("@vitest/spy").Procedure>;
26
26
  };
27
27
  options: {};
28
28
  };
@@ -1,17 +1,17 @@
1
1
  export declare function createMockClient(overrides?: Record<string, any>): {
2
2
  _listeners: Record<string, ((...args: any[]) => void)[]>;
3
- on: import("vitest").Mock<[event: string, cb: (...args: any[]) => void], void>;
4
- once: import("vitest").Mock<[event: string, cb: (...args: any[]) => void], void>;
5
- emit: import("vitest").Mock<[event: string, ...args: any[]], void>;
6
- login: import("vitest").Mock<any, any>;
7
- destroy: import("vitest").Mock<any, any>;
3
+ on: import("vitest").Mock<(event: string, cb: (...args: any[]) => void) => void>;
4
+ once: import("vitest").Mock<(event: string, cb: (...args: any[]) => void) => void>;
5
+ emit: import("vitest").Mock<(event: string, ...args: any[]) => void>;
6
+ login: import("vitest").Mock<import("@vitest/spy").Procedure>;
7
+ destroy: import("vitest").Mock<import("@vitest/spy").Procedure>;
8
8
  guilds: {
9
9
  cache: Map<any, any>;
10
- fetch: import("vitest").Mock<any, any>;
10
+ fetch: import("vitest").Mock<import("@vitest/spy").Procedure>;
11
11
  };
12
12
  channels: {
13
13
  cache: Map<any, any>;
14
- fetch: import("vitest").Mock<any, any>;
14
+ fetch: import("vitest").Mock<import("@vitest/spy").Procedure>;
15
15
  };
16
16
  user: {
17
17
  id: string;
@@ -19,7 +19,7 @@ export declare function createMockClient(overrides?: Record<string, any>): {
19
19
  username: string;
20
20
  };
21
21
  users: {
22
- fetch: import("vitest").Mock<any, any>;
22
+ fetch: import("vitest").Mock<import("@vitest/spy").Procedure>;
23
23
  };
24
24
  options: {};
25
25
  };
@@ -29,11 +29,11 @@ export declare function createMockGuild(overrides?: Record<string, any>): {
29
29
  ownerId: string;
30
30
  channels: {
31
31
  cache: Map<any, any>;
32
- fetch: import("vitest").Mock<any, any>;
32
+ fetch: import("vitest").Mock<import("@vitest/spy").Procedure>;
33
33
  };
34
34
  members: {
35
35
  cache: Map<any, any>;
36
- fetch: import("vitest").Mock<any, any>;
36
+ fetch: import("vitest").Mock<import("@vitest/spy").Procedure>;
37
37
  };
38
38
  roles: {
39
39
  cache: Map<any, any>;
@@ -49,21 +49,21 @@ export declare function createMockTextChannel(overrides?: Record<string, any>):
49
49
  ownerId: string;
50
50
  channels: {
51
51
  cache: Map<any, any>;
52
- fetch: import("vitest").Mock<any, any>;
52
+ fetch: import("vitest").Mock<import("@vitest/spy").Procedure>;
53
53
  };
54
54
  members: {
55
55
  cache: Map<any, any>;
56
- fetch: import("vitest").Mock<any, any>;
56
+ fetch: import("vitest").Mock<import("@vitest/spy").Procedure>;
57
57
  };
58
58
  roles: {
59
59
  cache: Map<any, any>;
60
60
  };
61
61
  };
62
- isTextBased: import("vitest").Mock<any, any>;
63
- isDMBased: import("vitest").Mock<any, any>;
62
+ isTextBased: import("vitest").Mock<import("@vitest/spy").Procedure>;
63
+ isDMBased: import("vitest").Mock<import("@vitest/spy").Procedure>;
64
64
  nsfw: boolean;
65
- send: import("vitest").Mock<any, any>;
66
- permissionsFor: import("vitest").Mock<any, any>;
65
+ send: import("vitest").Mock<import("@vitest/spy").Procedure>;
66
+ permissionsFor: import("vitest").Mock<import("@vitest/spy").Procedure>;
67
67
  };
68
68
  export declare function createMockGuildMember(overrides?: Record<string, any>): {
69
69
  id: string;
@@ -77,18 +77,18 @@ export declare function createMockGuildMember(overrides?: Record<string, any>):
77
77
  ownerId: string;
78
78
  channels: {
79
79
  cache: Map<any, any>;
80
- fetch: import("vitest").Mock<any, any>;
80
+ fetch: import("vitest").Mock<import("@vitest/spy").Procedure>;
81
81
  };
82
82
  members: {
83
83
  cache: Map<any, any>;
84
- fetch: import("vitest").Mock<any, any>;
84
+ fetch: import("vitest").Mock<import("@vitest/spy").Procedure>;
85
85
  };
86
86
  roles: {
87
87
  cache: Map<any, any>;
88
88
  };
89
89
  };
90
90
  permissions: {
91
- has: import("vitest").Mock<any, any>;
91
+ has: import("vitest").Mock<import("@vitest/spy").Procedure>;
92
92
  };
93
93
  roles: {
94
94
  cache: Map<any, any>;
@@ -109,18 +109,18 @@ export declare function createMockMessage(overrides?: Record<string, any>): {
109
109
  ownerId: string;
110
110
  channels: {
111
111
  cache: Map<any, any>;
112
- fetch: import("vitest").Mock<any, any>;
112
+ fetch: import("vitest").Mock<import("@vitest/spy").Procedure>;
113
113
  };
114
114
  members: {
115
115
  cache: Map<any, any>;
116
- fetch: import("vitest").Mock<any, any>;
116
+ fetch: import("vitest").Mock<import("@vitest/spy").Procedure>;
117
117
  };
118
118
  roles: {
119
119
  cache: Map<any, any>;
120
120
  };
121
121
  };
122
122
  permissions: {
123
- has: import("vitest").Mock<any, any>;
123
+ has: import("vitest").Mock<import("@vitest/spy").Procedure>;
124
124
  };
125
125
  roles: {
126
126
  cache: Map<any, any>;
@@ -136,21 +136,21 @@ export declare function createMockMessage(overrides?: Record<string, any>): {
136
136
  ownerId: string;
137
137
  channels: {
138
138
  cache: Map<any, any>;
139
- fetch: import("vitest").Mock<any, any>;
139
+ fetch: import("vitest").Mock<import("@vitest/spy").Procedure>;
140
140
  };
141
141
  members: {
142
142
  cache: Map<any, any>;
143
- fetch: import("vitest").Mock<any, any>;
143
+ fetch: import("vitest").Mock<import("@vitest/spy").Procedure>;
144
144
  };
145
145
  roles: {
146
146
  cache: Map<any, any>;
147
147
  };
148
148
  };
149
- isTextBased: import("vitest").Mock<any, any>;
150
- isDMBased: import("vitest").Mock<any, any>;
149
+ isTextBased: import("vitest").Mock<import("@vitest/spy").Procedure>;
150
+ isDMBased: import("vitest").Mock<import("@vitest/spy").Procedure>;
151
151
  nsfw: boolean;
152
- send: import("vitest").Mock<any, any>;
153
- permissionsFor: import("vitest").Mock<any, any>;
152
+ send: import("vitest").Mock<import("@vitest/spy").Procedure>;
153
+ permissionsFor: import("vitest").Mock<import("@vitest/spy").Procedure>;
154
154
  };
155
155
  guild: {
156
156
  id: string;
@@ -158,11 +158,11 @@ export declare function createMockMessage(overrides?: Record<string, any>): {
158
158
  ownerId: string;
159
159
  channels: {
160
160
  cache: Map<any, any>;
161
- fetch: import("vitest").Mock<any, any>;
161
+ fetch: import("vitest").Mock<import("@vitest/spy").Procedure>;
162
162
  };
163
163
  members: {
164
164
  cache: Map<any, any>;
165
- fetch: import("vitest").Mock<any, any>;
165
+ fetch: import("vitest").Mock<import("@vitest/spy").Procedure>;
166
166
  };
167
167
  roles: {
168
168
  cache: Map<any, any>;
@@ -181,26 +181,26 @@ export declare function createMockMessage(overrides?: Record<string, any>): {
181
181
  ownerId: string;
182
182
  channels: {
183
183
  cache: Map<any, any>;
184
- fetch: import("vitest").Mock<any, any>;
184
+ fetch: import("vitest").Mock<import("@vitest/spy").Procedure>;
185
185
  };
186
186
  members: {
187
187
  cache: Map<any, any>;
188
- fetch: import("vitest").Mock<any, any>;
188
+ fetch: import("vitest").Mock<import("@vitest/spy").Procedure>;
189
189
  };
190
190
  roles: {
191
191
  cache: Map<any, any>;
192
192
  };
193
193
  };
194
194
  permissions: {
195
- has: import("vitest").Mock<any, any>;
195
+ has: import("vitest").Mock<import("@vitest/spy").Procedure>;
196
196
  };
197
197
  roles: {
198
198
  cache: Map<any, any>;
199
199
  };
200
200
  };
201
- reply: import("vitest").Mock<any, any>;
202
- delete: import("vitest").Mock<any, any>;
203
- react: import("vitest").Mock<any, any>;
201
+ reply: import("vitest").Mock<import("@vitest/spy").Procedure>;
202
+ delete: import("vitest").Mock<import("@vitest/spy").Procedure>;
203
+ react: import("vitest").Mock<import("@vitest/spy").Procedure>;
204
204
  editable: boolean;
205
205
  deletable: boolean;
206
206
  };
@@ -213,11 +213,11 @@ export declare function createMockCommandInteraction(overrides?: Record<string,
213
213
  ownerId: string;
214
214
  channels: {
215
215
  cache: Map<any, any>;
216
- fetch: import("vitest").Mock<any, any>;
216
+ fetch: import("vitest").Mock<import("@vitest/spy").Procedure>;
217
217
  };
218
218
  members: {
219
219
  cache: Map<any, any>;
220
- fetch: import("vitest").Mock<any, any>;
220
+ fetch: import("vitest").Mock<import("@vitest/spy").Procedure>;
221
221
  };
222
222
  roles: {
223
223
  cache: Map<any, any>;
@@ -234,21 +234,21 @@ export declare function createMockCommandInteraction(overrides?: Record<string,
234
234
  ownerId: string;
235
235
  channels: {
236
236
  cache: Map<any, any>;
237
- fetch: import("vitest").Mock<any, any>;
237
+ fetch: import("vitest").Mock<import("@vitest/spy").Procedure>;
238
238
  };
239
239
  members: {
240
240
  cache: Map<any, any>;
241
- fetch: import("vitest").Mock<any, any>;
241
+ fetch: import("vitest").Mock<import("@vitest/spy").Procedure>;
242
242
  };
243
243
  roles: {
244
244
  cache: Map<any, any>;
245
245
  };
246
246
  };
247
- isTextBased: import("vitest").Mock<any, any>;
248
- isDMBased: import("vitest").Mock<any, any>;
247
+ isTextBased: import("vitest").Mock<import("@vitest/spy").Procedure>;
248
+ isDMBased: import("vitest").Mock<import("@vitest/spy").Procedure>;
249
249
  nsfw: boolean;
250
- send: import("vitest").Mock<any, any>;
251
- permissionsFor: import("vitest").Mock<any, any>;
250
+ send: import("vitest").Mock<import("@vitest/spy").Procedure>;
251
+ permissionsFor: import("vitest").Mock<import("@vitest/spy").Procedure>;
252
252
  };
253
253
  member: {
254
254
  id: string;
@@ -262,18 +262,18 @@ export declare function createMockCommandInteraction(overrides?: Record<string,
262
262
  ownerId: string;
263
263
  channels: {
264
264
  cache: Map<any, any>;
265
- fetch: import("vitest").Mock<any, any>;
265
+ fetch: import("vitest").Mock<import("@vitest/spy").Procedure>;
266
266
  };
267
267
  members: {
268
268
  cache: Map<any, any>;
269
- fetch: import("vitest").Mock<any, any>;
269
+ fetch: import("vitest").Mock<import("@vitest/spy").Procedure>;
270
270
  };
271
271
  roles: {
272
272
  cache: Map<any, any>;
273
273
  };
274
274
  };
275
275
  permissions: {
276
- has: import("vitest").Mock<any, any>;
276
+ has: import("vitest").Mock<import("@vitest/spy").Procedure>;
277
277
  };
278
278
  roles: {
279
279
  cache: Map<any, any>;
@@ -283,19 +283,19 @@ export declare function createMockCommandInteraction(overrides?: Record<string,
283
283
  id: string;
284
284
  username: string;
285
285
  };
286
- reply: import("vitest").Mock<any, any>;
287
- deferReply: import("vitest").Mock<any, any>;
288
- editReply: import("vitest").Mock<any, any>;
289
- followUp: import("vitest").Mock<any, any>;
286
+ reply: import("vitest").Mock<import("@vitest/spy").Procedure>;
287
+ deferReply: import("vitest").Mock<import("@vitest/spy").Procedure>;
288
+ editReply: import("vitest").Mock<import("@vitest/spy").Procedure>;
289
+ followUp: import("vitest").Mock<import("@vitest/spy").Procedure>;
290
290
  options: {
291
- get: import("vitest").Mock<any, any>;
292
- getString: import("vitest").Mock<any, any>;
293
- getInteger: import("vitest").Mock<any, any>;
294
- getBoolean: import("vitest").Mock<any, any>;
295
- getUser: import("vitest").Mock<any, any>;
296
- getChannel: import("vitest").Mock<any, any>;
297
- getRole: import("vitest").Mock<any, any>;
298
- getSubcommand: import("vitest").Mock<any, any>;
291
+ get: import("vitest").Mock<import("@vitest/spy").Procedure>;
292
+ getString: import("vitest").Mock<import("@vitest/spy").Procedure>;
293
+ getInteger: import("vitest").Mock<import("@vitest/spy").Procedure>;
294
+ getBoolean: import("vitest").Mock<import("@vitest/spy").Procedure>;
295
+ getUser: import("vitest").Mock<import("@vitest/spy").Procedure>;
296
+ getChannel: import("vitest").Mock<import("@vitest/spy").Procedure>;
297
+ getRole: import("vitest").Mock<import("@vitest/spy").Procedure>;
298
+ getSubcommand: import("vitest").Mock<import("@vitest/spy").Procedure>;
299
299
  };
300
300
  };
301
301
  export declare function createMockButtonInteraction(overrides?: Record<string, any>): {
@@ -307,11 +307,11 @@ export declare function createMockButtonInteraction(overrides?: Record<string, a
307
307
  ownerId: string;
308
308
  channels: {
309
309
  cache: Map<any, any>;
310
- fetch: import("vitest").Mock<any, any>;
310
+ fetch: import("vitest").Mock<import("@vitest/spy").Procedure>;
311
311
  };
312
312
  members: {
313
313
  cache: Map<any, any>;
314
- fetch: import("vitest").Mock<any, any>;
314
+ fetch: import("vitest").Mock<import("@vitest/spy").Procedure>;
315
315
  };
316
316
  roles: {
317
317
  cache: Map<any, any>;
@@ -328,21 +328,21 @@ export declare function createMockButtonInteraction(overrides?: Record<string, a
328
328
  ownerId: string;
329
329
  channels: {
330
330
  cache: Map<any, any>;
331
- fetch: import("vitest").Mock<any, any>;
331
+ fetch: import("vitest").Mock<import("@vitest/spy").Procedure>;
332
332
  };
333
333
  members: {
334
334
  cache: Map<any, any>;
335
- fetch: import("vitest").Mock<any, any>;
335
+ fetch: import("vitest").Mock<import("@vitest/spy").Procedure>;
336
336
  };
337
337
  roles: {
338
338
  cache: Map<any, any>;
339
339
  };
340
340
  };
341
- isTextBased: import("vitest").Mock<any, any>;
342
- isDMBased: import("vitest").Mock<any, any>;
341
+ isTextBased: import("vitest").Mock<import("@vitest/spy").Procedure>;
342
+ isDMBased: import("vitest").Mock<import("@vitest/spy").Procedure>;
343
343
  nsfw: boolean;
344
- send: import("vitest").Mock<any, any>;
345
- permissionsFor: import("vitest").Mock<any, any>;
344
+ send: import("vitest").Mock<import("@vitest/spy").Procedure>;
345
+ permissionsFor: import("vitest").Mock<import("@vitest/spy").Procedure>;
346
346
  };
347
347
  member: {
348
348
  id: string;
@@ -356,18 +356,18 @@ export declare function createMockButtonInteraction(overrides?: Record<string, a
356
356
  ownerId: string;
357
357
  channels: {
358
358
  cache: Map<any, any>;
359
- fetch: import("vitest").Mock<any, any>;
359
+ fetch: import("vitest").Mock<import("@vitest/spy").Procedure>;
360
360
  };
361
361
  members: {
362
362
  cache: Map<any, any>;
363
- fetch: import("vitest").Mock<any, any>;
363
+ fetch: import("vitest").Mock<import("@vitest/spy").Procedure>;
364
364
  };
365
365
  roles: {
366
366
  cache: Map<any, any>;
367
367
  };
368
368
  };
369
369
  permissions: {
370
- has: import("vitest").Mock<any, any>;
370
+ has: import("vitest").Mock<import("@vitest/spy").Procedure>;
371
371
  };
372
372
  roles: {
373
373
  cache: Map<any, any>;
@@ -377,10 +377,10 @@ export declare function createMockButtonInteraction(overrides?: Record<string, a
377
377
  id: string;
378
378
  username: string;
379
379
  };
380
- reply: import("vitest").Mock<any, any>;
381
- deferReply: import("vitest").Mock<any, any>;
382
- deferUpdate: import("vitest").Mock<any, any>;
383
- update: import("vitest").Mock<any, any>;
380
+ reply: import("vitest").Mock<import("@vitest/spy").Procedure>;
381
+ deferReply: import("vitest").Mock<import("@vitest/spy").Procedure>;
382
+ deferUpdate: import("vitest").Mock<import("@vitest/spy").Procedure>;
383
+ update: import("vitest").Mock<import("@vitest/spy").Procedure>;
384
384
  };
385
385
  export declare function createMockStringSelectMenuInteraction(overrides?: Record<string, any>): {
386
386
  id: string;
@@ -392,11 +392,11 @@ export declare function createMockStringSelectMenuInteraction(overrides?: Record
392
392
  ownerId: string;
393
393
  channels: {
394
394
  cache: Map<any, any>;
395
- fetch: import("vitest").Mock<any, any>;
395
+ fetch: import("vitest").Mock<import("@vitest/spy").Procedure>;
396
396
  };
397
397
  members: {
398
398
  cache: Map<any, any>;
399
- fetch: import("vitest").Mock<any, any>;
399
+ fetch: import("vitest").Mock<import("@vitest/spy").Procedure>;
400
400
  };
401
401
  roles: {
402
402
  cache: Map<any, any>;
@@ -413,21 +413,21 @@ export declare function createMockStringSelectMenuInteraction(overrides?: Record
413
413
  ownerId: string;
414
414
  channels: {
415
415
  cache: Map<any, any>;
416
- fetch: import("vitest").Mock<any, any>;
416
+ fetch: import("vitest").Mock<import("@vitest/spy").Procedure>;
417
417
  };
418
418
  members: {
419
419
  cache: Map<any, any>;
420
- fetch: import("vitest").Mock<any, any>;
420
+ fetch: import("vitest").Mock<import("@vitest/spy").Procedure>;
421
421
  };
422
422
  roles: {
423
423
  cache: Map<any, any>;
424
424
  };
425
425
  };
426
- isTextBased: import("vitest").Mock<any, any>;
427
- isDMBased: import("vitest").Mock<any, any>;
426
+ isTextBased: import("vitest").Mock<import("@vitest/spy").Procedure>;
427
+ isDMBased: import("vitest").Mock<import("@vitest/spy").Procedure>;
428
428
  nsfw: boolean;
429
- send: import("vitest").Mock<any, any>;
430
- permissionsFor: import("vitest").Mock<any, any>;
429
+ send: import("vitest").Mock<import("@vitest/spy").Procedure>;
430
+ permissionsFor: import("vitest").Mock<import("@vitest/spy").Procedure>;
431
431
  };
432
432
  member: {
433
433
  id: string;
@@ -441,18 +441,18 @@ export declare function createMockStringSelectMenuInteraction(overrides?: Record
441
441
  ownerId: string;
442
442
  channels: {
443
443
  cache: Map<any, any>;
444
- fetch: import("vitest").Mock<any, any>;
444
+ fetch: import("vitest").Mock<import("@vitest/spy").Procedure>;
445
445
  };
446
446
  members: {
447
447
  cache: Map<any, any>;
448
- fetch: import("vitest").Mock<any, any>;
448
+ fetch: import("vitest").Mock<import("@vitest/spy").Procedure>;
449
449
  };
450
450
  roles: {
451
451
  cache: Map<any, any>;
452
452
  };
453
453
  };
454
454
  permissions: {
455
- has: import("vitest").Mock<any, any>;
455
+ has: import("vitest").Mock<import("@vitest/spy").Procedure>;
456
456
  };
457
457
  roles: {
458
458
  cache: Map<any, any>;
@@ -462,17 +462,17 @@ export declare function createMockStringSelectMenuInteraction(overrides?: Record
462
462
  id: string;
463
463
  username: string;
464
464
  };
465
- reply: import("vitest").Mock<any, any>;
466
- deferReply: import("vitest").Mock<any, any>;
467
- deferUpdate: import("vitest").Mock<any, any>;
468
- update: import("vitest").Mock<any, any>;
465
+ reply: import("vitest").Mock<import("@vitest/spy").Procedure>;
466
+ deferReply: import("vitest").Mock<import("@vitest/spy").Procedure>;
467
+ deferUpdate: import("vitest").Mock<import("@vitest/spy").Procedure>;
468
+ update: import("vitest").Mock<import("@vitest/spy").Procedure>;
469
469
  };
470
470
  export declare function createMockModalSubmitInteraction(overrides?: Record<string, any>): {
471
471
  id: string;
472
472
  customId: string;
473
473
  fields: {
474
- getTextInputValue: import("vitest").Mock<any, any>;
475
- getField: import("vitest").Mock<any, any>;
474
+ getTextInputValue: import("vitest").Mock<import("@vitest/spy").Procedure>;
475
+ getField: import("vitest").Mock<import("@vitest/spy").Procedure>;
476
476
  fields: any[];
477
477
  };
478
478
  guild: {
@@ -481,11 +481,11 @@ export declare function createMockModalSubmitInteraction(overrides?: Record<stri
481
481
  ownerId: string;
482
482
  channels: {
483
483
  cache: Map<any, any>;
484
- fetch: import("vitest").Mock<any, any>;
484
+ fetch: import("vitest").Mock<import("@vitest/spy").Procedure>;
485
485
  };
486
486
  members: {
487
487
  cache: Map<any, any>;
488
- fetch: import("vitest").Mock<any, any>;
488
+ fetch: import("vitest").Mock<import("@vitest/spy").Procedure>;
489
489
  };
490
490
  roles: {
491
491
  cache: Map<any, any>;
@@ -502,21 +502,21 @@ export declare function createMockModalSubmitInteraction(overrides?: Record<stri
502
502
  ownerId: string;
503
503
  channels: {
504
504
  cache: Map<any, any>;
505
- fetch: import("vitest").Mock<any, any>;
505
+ fetch: import("vitest").Mock<import("@vitest/spy").Procedure>;
506
506
  };
507
507
  members: {
508
508
  cache: Map<any, any>;
509
- fetch: import("vitest").Mock<any, any>;
509
+ fetch: import("vitest").Mock<import("@vitest/spy").Procedure>;
510
510
  };
511
511
  roles: {
512
512
  cache: Map<any, any>;
513
513
  };
514
514
  };
515
- isTextBased: import("vitest").Mock<any, any>;
516
- isDMBased: import("vitest").Mock<any, any>;
515
+ isTextBased: import("vitest").Mock<import("@vitest/spy").Procedure>;
516
+ isDMBased: import("vitest").Mock<import("@vitest/spy").Procedure>;
517
517
  nsfw: boolean;
518
- send: import("vitest").Mock<any, any>;
519
- permissionsFor: import("vitest").Mock<any, any>;
518
+ send: import("vitest").Mock<import("@vitest/spy").Procedure>;
519
+ permissionsFor: import("vitest").Mock<import("@vitest/spy").Procedure>;
520
520
  };
521
521
  member: {
522
522
  id: string;
@@ -530,18 +530,18 @@ export declare function createMockModalSubmitInteraction(overrides?: Record<stri
530
530
  ownerId: string;
531
531
  channels: {
532
532
  cache: Map<any, any>;
533
- fetch: import("vitest").Mock<any, any>;
533
+ fetch: import("vitest").Mock<import("@vitest/spy").Procedure>;
534
534
  };
535
535
  members: {
536
536
  cache: Map<any, any>;
537
- fetch: import("vitest").Mock<any, any>;
537
+ fetch: import("vitest").Mock<import("@vitest/spy").Procedure>;
538
538
  };
539
539
  roles: {
540
540
  cache: Map<any, any>;
541
541
  };
542
542
  };
543
543
  permissions: {
544
- has: import("vitest").Mock<any, any>;
544
+ has: import("vitest").Mock<import("@vitest/spy").Procedure>;
545
545
  };
546
546
  roles: {
547
547
  cache: Map<any, any>;
@@ -551,7 +551,7 @@ export declare function createMockModalSubmitInteraction(overrides?: Record<stri
551
551
  id: string;
552
552
  username: string;
553
553
  };
554
- reply: import("vitest").Mock<any, any>;
555
- deferReply: import("vitest").Mock<any, any>;
556
- deferUpdate: import("vitest").Mock<any, any>;
554
+ reply: import("vitest").Mock<import("@vitest/spy").Procedure>;
555
+ deferReply: import("vitest").Mock<import("@vitest/spy").Procedure>;
556
+ deferUpdate: import("vitest").Mock<import("@vitest/spy").Procedure>;
557
557
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zumito-framework",
3
- "version": "1.22.0",
3
+ "version": "1.22.2",
4
4
  "description": "Discord.js bot framework",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -23,7 +23,7 @@
23
23
  "author": "ZumitoTeam",
24
24
  "license": "ISC",
25
25
  "dependencies": {
26
- "@discordjs/rest": "^1.7.0",
26
+ "@discordjs/rest": "^2.6.1",
27
27
  "@types/express": "^4.17.13",
28
28
  "autocorrect": "^1.2.0",
29
29
  "better-logging": "^5.0.0",
@@ -45,17 +45,17 @@
45
45
  "zumito-db": "^2.0.3"
46
46
  },
47
47
  "devDependencies": {
48
- "@types/node": "^18.19.44",
48
+ "@types/node": "^22.0.0",
49
49
  "@typescript-eslint/eslint-plugin": "^5.48.2",
50
50
  "@typescript-eslint/parser": "^5.48.2",
51
- "@vitest/coverage-v8": "^1.6.1",
51
+ "@vitest/coverage-v8": "^4.1.9",
52
52
  "eslint": "^8.32.0",
53
53
  "eslint-config-prettier": "^8.6.0",
54
54
  "eslint-plugin-check-file": "^2.2.0",
55
55
  "eslint-plugin-prettier": "^4.2.1",
56
56
  "prettier": "^2.8.3",
57
57
  "typescript": "^5.8.3",
58
- "vitest": "^1.6.1"
58
+ "vitest": "^4.1.9"
59
59
  },
60
60
  "type": "module",
61
61
  "exports": {