@@ -22,42 +22,34 @@ export interface CommandKitOptions {
22
22
* The Discord.js client object to use with CommandKit.
23
23
*/
24
24
client : Client ;
25
-
26
25
/**
27
26
* The path to your commands directory.
28
27
*/
29
28
commandsPath ?: string ;
30
-
31
29
/**
32
30
* The path to your events directory.
33
31
*/
34
32
eventsPath ?: string ;
35
-
36
33
/**
37
34
* The path to the validations directory.
38
35
*/
39
36
validationsPath ?: string ;
40
-
41
37
/**
42
38
* List of development guild IDs to restrict devOnly commands to.
43
39
*/
44
40
devGuildIds ?: string [ ] ;
45
-
46
41
/**
47
42
* List of developer user IDs to restrict devOnly commands to.
48
43
*/
49
44
devUserIds ?: string [ ] ;
50
-
51
45
/**
52
46
* List of developer role IDs to restrict devOnly commands to.
53
47
*/
54
48
devRoleIds ?: string [ ] ;
55
-
56
49
/**
57
50
* Skip CommandKit's built-in validations (for devOnly commands).
58
51
*/
59
52
skipBuiltInValidations ?: boolean ;
60
-
61
53
/**
62
54
* Bulk register application commands instead of one-by-one.
63
55
*/
@@ -138,12 +130,10 @@ export interface CommandProps {
138
130
| UserContextMenuCommandInteraction
139
131
| MessageContextMenuCommandInteraction
140
132
| AutocompleteInteraction ;
141
-
142
133
/**
143
134
* The Discord.js client object that CommandKit is handling.
144
135
*/
145
136
client : Client < true > ;
146
-
147
137
/**
148
138
* The current CommandKit handler instance.
149
139
*/
@@ -205,17 +195,14 @@ export interface ValidationProps {
205
195
| ChatInputCommandInteraction
206
196
| ContextMenuCommandInteraction
207
197
| AutocompleteInteraction ;
208
-
209
198
/**
210
199
* The Discord.js client object that CommandKit is handling.
211
200
*/
212
201
client : Client < true > ;
213
-
214
202
/**
215
203
* The current (local) target command object.
216
204
*/
217
205
commandObj : CommandObject ;
218
-
219
206
/**
220
207
* The current CommandKit handler instance.
221
208
*/
@@ -233,18 +220,15 @@ export interface CommandOptions {
233
220
* @deprecated Use `dm_permission` in the command's `data` object instead.
234
221
*/
235
222
guildOnly ?: boolean ;
236
-
237
223
/**
238
224
* A boolean indicating whether the command is developer-only.
239
225
* Used for registration and built-in validation.
240
226
*/
241
227
devOnly ?: boolean ;
242
-
243
228
/**
244
229
* A boolean indicating whether the command is deleted/ignored on restart/reload.
245
230
*/
246
231
deleted ?: boolean ;
247
-
248
232
/**
249
233
* A string or array of permissions that a user needs for the current command to be executed.
250
234
* Used for built-in validation.
@@ -255,7 +239,6 @@ export interface CommandOptions {
255
239
* userPermissions: ['BanMembers', 'KickMembers']
256
240
*/
257
241
userPermissions ?: PermissionsString | PermissionsString [ ] ;
258
-
259
242
/**
260
243
* A string or array of permissions that the bot needs to execute the current command.
261
244
* Used for built-in validation.
@@ -277,17 +260,14 @@ export type CommandObject = {
277
260
* An object which defines the structure of the application command.
278
261
*/
279
262
data : CommandData ;
280
-
281
263
/**
282
264
* Additional command configuration options.
283
265
*/
284
266
options ?: CommandOptions ;
285
-
286
267
/**
287
268
* The path to the command file.
288
269
*/
289
270
filePath : string ;
290
-
291
271
/**
292
272
* The command's category. Determined based on the command folder.
293
273
*
@@ -298,7 +278,6 @@ export type CommandObject = {
298
278
* ```
299
279
*/
300
280
category : string | null ;
301
-
302
281
[ key : string ] : any ;
303
282
} ;
304
283
@@ -307,7 +286,6 @@ export enum ReloadType {
307
286
* Reload developer/guild commands.
308
287
*/
309
288
Developer = 'dev' ,
310
-
311
289
/**
312
290
* Reload global commands.
313
291
*/
0 commit comments