Skip to content

Commit ce73c44

Browse files
committedAug 23, 2023
fix(Command): make resolveConstructorPreConditionsRunType protected instead of private
1 parent b1028de commit ce73c44

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎src/lib/structures/Command.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,12 @@ export class Command<PreParseReturn = Args, O extends Command.Options = Command.
416416
}
417417
}
418418

419-
private resolveConstructorPreConditionsRunType(types: Command.Options['runIn']): readonly ChannelType[] | null {
419+
/**
420+
* Resolves the {@link Command.Options.runIn} option into a {@link Command.RunInTypes} array.
421+
* @param types The types to resolve.
422+
* @returns The resolved types, or `null` if no types were resolved.
423+
*/
424+
protected resolveConstructorPreConditionsRunType(types: Command.Options['runIn']): readonly ChannelType[] | null {
420425
if (isNullish(types)) return null;
421426
if (typeof types === 'number') return [types];
422427
if (typeof types === 'string') {

0 commit comments

Comments
 (0)
Please sign in to comment.