mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 02:23:31 +01:00
refactor(OptionResolver): accept single type instead of an array (#6154)
This commit is contained in:
4
typings/index.d.ts
vendored
4
typings/index.d.ts
vendored
@@ -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