mirror of
https://github.com/discordjs/discord.js.git
synced 2026-06-15 10:58:18 +00:00
refactor(OptionResolver): accept single type instead of an array (#6154)
This commit is contained in:
Vendored
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user