refactor(OptionResolver): accept single type instead of an array (#6154)

This commit is contained in:
Jan
2021-07-20 21:20:20 +02:00
committed by GitHub
parent 02f55f0971
commit 5addcd15d8
3 changed files with 15 additions and 15 deletions

4
typings/index.d.ts vendored
View File

@@ -432,13 +432,13 @@ export class CommandInteractionOptionResolver {
private _subCommand: string | null;
private _getTypedOption(
name: string,
types: ApplicationCommandOptionType[],
type: ApplicationCommandOptionType,
properties: (keyof ApplicationCommandOption)[],
required: true,
): CommandInteractionOption;
private _getTypedOption(
name: string,
types: ApplicationCommandOptionType[],
type: ApplicationCommandOptionType,
properties: (keyof ApplicationCommandOption)[],
required: boolean,
): CommandInteractionOption | null;