mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 12:33:30 +01:00
refactor: Match subcommand (group) name casing with Discord's (#6204)
This commit is contained in:
10
typings/index.d.ts
vendored
10
typings/index.d.ts
vendored
@@ -431,7 +431,7 @@ export class CommandInteractionOptionResolver {
|
||||
public readonly data: readonly CommandInteractionOption[];
|
||||
private _group: string | null;
|
||||
private _hoistedOptions: CommandInteractionOption[];
|
||||
private _subCommand: string | null;
|
||||
private _subcommand: string | null;
|
||||
private _getTypedOption(
|
||||
name: string,
|
||||
type: ApplicationCommandOptionType,
|
||||
@@ -448,10 +448,10 @@ export class CommandInteractionOptionResolver {
|
||||
public get(name: string, required: true): CommandInteractionOption;
|
||||
public get(name: string, required?: boolean): CommandInteractionOption | null;
|
||||
|
||||
public getSubCommand(required?: true): string;
|
||||
public getSubCommand(required: boolean): string | null;
|
||||
public getSubCommandGroup(required?: true): string;
|
||||
public getSubCommandGroup(required: boolean): string | null;
|
||||
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