File tree 1 file changed +2
-9
lines changed
1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ export abstract class Command<T = Args> extends AliasPiece {
48
48
super ( context , { ...options , name : ( name ?? context . name ) . toLowerCase ( ) } ) ;
49
49
this . description = options . description ?? '' ;
50
50
this . detailedDescription = options . detailedDescription ?? '' ;
51
- this . strategy = new FlagUnorderedStrategy ( options . strategyOptions ) ;
51
+ this . strategy = new FlagUnorderedStrategy ( options ) ;
52
52
this . lexer . setQuotes (
53
53
options . quotes ?? [
54
54
[ '"' , '"' ] , // Double quotes
@@ -177,7 +177,7 @@ export const enum CommandPreConditions {
177
177
* The {@link Command} options.
178
178
* @since 1.0.0
179
179
*/
180
- export interface CommandOptions extends AliasPieceOptions {
180
+ export interface CommandOptions extends AliasPieceOptions , FlagStrategyOptions {
181
181
/**
182
182
* Whether to add aliases for commands with dashes in them
183
183
* @since 1.0.0
@@ -207,13 +207,6 @@ export interface CommandOptions extends AliasPieceOptions {
207
207
*/
208
208
preconditions ?: readonly PreconditionEntryResolvable [ ] ;
209
209
210
- /**
211
- * The options for the lexer strategy.
212
- * @since 1.0.0
213
- * @default {}
214
- */
215
- strategyOptions ?: FlagStrategyOptions ;
216
-
217
210
/**
218
211
* The quotes accepted by this command, pass `[]` to disable them.
219
212
* @since 1.0.0
You can’t perform that action at this time.
0 commit comments