fix(SlashCommandBuilder): missing methods in subcommand builder (#8583)

This commit is contained in:
Almeida
2022-09-15 19:19:13 +01:00
committed by GitHub
parent 053da5bc91
commit 1c5b78fd21
2 changed files with 13 additions and 2 deletions

View File

@@ -190,8 +190,7 @@ export class SlashCommandBuilder {
export interface SlashCommandBuilder extends SharedNameAndDescription, SharedSlashCommandOptions {}
export interface SlashCommandSubcommandsOnlyBuilder
extends SharedNameAndDescription,
Pick<SlashCommandBuilder, 'addSubcommand' | 'addSubcommandGroup' | 'toJSON'> {}
extends Omit<SlashCommandBuilder, Exclude<keyof SharedSlashCommandOptions, 'options'>> {}
export interface SlashCommandOptionsOnlyBuilder
extends SharedNameAndDescription,