mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 04:53:30 +01:00
feat(CommandInteractionOptionResolver): add sub-command required option (#6165)
This commit is contained in:
7
typings/index.d.ts
vendored
7
typings/index.d.ts
vendored
@@ -446,8 +446,11 @@ export class CommandInteractionOptionResolver {
|
||||
|
||||
public get(name: string, required: true): CommandInteractionOption;
|
||||
public get(name: string, required?: boolean): CommandInteractionOption | null;
|
||||
public getSubCommand(): string;
|
||||
public getSubCommandGroup(): string;
|
||||
|
||||
public getSubCommand(required?: true): string;
|
||||
public getSubCommand(required: boolean): string | null;
|
||||
public getSubCommandGroup(required?: true): string;
|
||||
public getSubCommandGroup(required: boolean): string | null;
|
||||
public getBoolean(name: string, required: true): boolean;
|
||||
public getBoolean(name: string, required?: boolean): boolean | null;
|
||||
public getChannel(name: string, required: true): NonNullable<CommandInteractionOption['channel']>;
|
||||
|
||||
Reference in New Issue
Block a user